fix: vite server hotfix

This commit is contained in:
2026-06-16 12:15:25 +03:00
parent 1022b7e5f1
commit 9df80dd4e1
6 changed files with 146 additions and 8 deletions

17
frontend/nginx.prod.conf Normal file
View File

@@ -0,0 +1,17 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# SPA fallback — all unknown routes serve index.html
location / {
try_files $uri $uri/ /index.html;
}
# Cache static assets
location ~* \.(js|css|png|svg|ico|woff2?)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}