Skip to content

Commit

Permalink
fix(nginx4spa): handle next.js static urls (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Oct 7, 2020
1 parent 6afdc60 commit c9df933
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nginx4spa/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ http {
error_page 500 502 503 504 /50x.html;

location / {
try_files $uri $uri/ /index.html;
# this always fallback on /index.html, never 404
try_files $uri $uri/ $uri.html $uri/index.html /index.html;
}

location /50x.html {
Expand Down

0 comments on commit c9df933

Please sign in to comment.