From 7a7cc246aa302c65818fb03e32d65a9ae6734283 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Thu, 22 May 2025 12:44:40 +0200 Subject: [PATCH] fix(nginx): proxy Vite dev server deps for HMR in multi-node setup --- compose/etc/nginx/conf.dev | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compose/etc/nginx/conf.dev b/compose/etc/nginx/conf.dev index 40af155ae..1f490f745 100644 --- a/compose/etc/nginx/conf.dev +++ b/compose/etc/nginx/conf.dev @@ -74,6 +74,11 @@ server { proxy_pass http://funkwhale-api; } + location /node_modules/.vite/ { + include /etc/nginx/funkwhale_proxy.conf; + proxy_pass http://funkwhale-front; + } + location ~ ^/@(vite-plugin-pwa|vite|id)/ { include /etc/nginx/funkwhale_proxy.conf; proxy_pass http://funkwhale-front;