mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +02:00
fix vite web build to work with subpath
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user