Unverified Commit 329aa630 authored by Julien Bouquillon's avatar Julien Bouquillon 🐫 Committed by GitHub
Browse files

fix(nginx): static next.js friendly fallback (#868)

parent 79d36727
......@@ -43,7 +43,13 @@ http {
recursive_error_pages on;
location / {
# for next.js static exports, maps /page to page/index.html
try_files $uri $uri.html $uri/index.html =404;
}
location ~* ^/404\.html$ {
# enable userland 404
try_files /404.html /404/index.html
error_page 404 = @error404;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment