FIX(docs): add root redirect to /intro/
- Docusaurus builds index.html at /intro/ instead of root - Add redirect from root (/) to /intro/ to fix 403 Forbidden error - Update try_files fallback to use /intro/index.html
This commit is contained in:
@@ -99,9 +99,14 @@ data:
|
|||||||
gzip_min_length 1024;
|
gzip_min_length 1024;
|
||||||
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml+rss application/javascript application/json;
|
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml+rss application/javascript application/json;
|
||||||
|
|
||||||
|
# Redirect root to intro page
|
||||||
|
location = / {
|
||||||
|
return 301 /intro/;
|
||||||
|
}
|
||||||
|
|
||||||
# SPA fallback
|
# SPA fallback
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /intro/index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Cache static assets
|
# Cache static assets
|
||||||
|
|||||||
Reference in New Issue
Block a user