fix content issue
This commit is contained in:
@@ -11,8 +11,9 @@ http {
|
|||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
# This line forces Nginx to pass routing back to React Router
|
# Next.js static export creates page.html (e.g. contact.html) for routes.
|
||||||
try_files $uri $uri/ /index.html;
|
# We check $uri.html to allow clean URLs without the .html extension.
|
||||||
|
try_files $uri $uri.html $uri/ /404.html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user