fix: add nginx SPA fallback to resolve deck 404 on direct URL access
Deploy Slides / build-and-deploy (push) Successful in 1m50s
Deploy Slides / build-and-deploy (push) Successful in 1m50s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -37,4 +37,6 @@ jobs:
|
||||
--restart unless-stopped \
|
||||
-p 8080:80 \
|
||||
nginx:alpine
|
||||
docker cp nginx.conf slides-nginx:/etc/nginx/conf.d/default.conf
|
||||
docker cp dist/. slides-nginx:/usr/share/nginx/html/
|
||||
docker exec slides-nginx nginx -s reload
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ $uri/index.html /index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user