Fix maintenance /assets 403 and remove vite-plugin-pwa
- nginx try_files: remove $uri/ so the Vite assets/ build directory doesn't shadow the /assets React route and trigger a 403 - Remove VitePWA plugin (leftover from scaffold, not needed for internal app) - Strip PWA-specific nginx location blocks (manifest, sw.js, registerSW.js) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c43a23b00d
commit
a3b458abca
3 changed files with 3 additions and 44 deletions
|
|
@ -1,20 +1,4 @@
|
|||
server {
|
||||
location = /maintenance/manifest.webmanifest {
|
||||
default_type application/manifest+json;
|
||||
add_header Cache-Control "no-cache";
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location = /maintenance/sw.js {
|
||||
add_header Cache-Control "no-cache";
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location = /maintenance/registerSW.js {
|
||||
add_header Cache-Control "no-cache";
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
|
|
@ -47,7 +31,7 @@ server {
|
|||
|
||||
location /maintenance/ {
|
||||
add_header Cache-Control "no-cache" always;
|
||||
try_files $uri $uri/ /maintenance/index.html;
|
||||
try_files $uri /maintenance/index.html;
|
||||
}
|
||||
|
||||
location = / {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue