fix vite web build to work with subpath

This commit is contained in:
jeffvli
2026-02-12 11:18:24 -08:00
parent 203c8a6588
commit 1a9f36ce9e
4 changed files with 139 additions and 120 deletions
+2 -1
View File
@@ -12,9 +12,10 @@ server {
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;
# PUBLIC_PATH must be "/" or a subpath with trailing slash (e.g. "/feishin/")
location ${PUBLIC_PATH} {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /index.html =404;
try_files $uri $uri/ /index.html;
}
location ${PUBLIC_PATH}settings.js {