Created
October 20, 2020 23:25
-
-
Save jpescada/d816b5b95989c6ea772275161e695b27 to your computer and use it in GitHub Desktop.
NGINX block config for static PWA routing (React, Angular, Next, etc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
location / { | |
try_files $uri $uri.html $uri/ =404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment