Skip to content

Instantly share code, notes, and snippets.

@jpescada
Created October 20, 2020 23:25
Show Gist options
  • Save jpescada/d816b5b95989c6ea772275161e695b27 to your computer and use it in GitHub Desktop.
Save jpescada/d816b5b95989c6ea772275161e695b27 to your computer and use it in GitHub Desktop.
NGINX block config for static PWA routing (React, Angular, Next, etc)
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