fix(nginx): proxy Vite dev server deps for HMR in multi-node setup

This commit is contained in:
ArneBo 2025-05-22 12:44:40 +02:00 committed by Arne Bollinger
parent 6eddef1e1b
commit 7a7cc246aa
1 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,11 @@ server {
proxy_pass http://funkwhale-api; 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)/ { location ~ ^/@(vite-plugin-pwa|vite|id)/ {
include /etc/nginx/funkwhale_proxy.conf; include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-front; proxy_pass http://funkwhale-front;