Skip to content

Commit

Permalink
add support for running pwa locally
Browse files Browse the repository at this point in the history
  • Loading branch information
manishoo committed Apr 29, 2022
1 parent 0584a91 commit b2bb0cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions containers/nginx/dev-ssr.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ server {
add_header 'Access-Control-Allow-Origin' *;
}

location ~ ^/(manifest.webmanifest|ngsw-worker.js|ngsw.json|safety-worker.js|worker-basic.min.js)$ {
rewrite /var/www/Minds/front/dist/browser/en/$1 last;
}

location ~ (composer.json|composer.lock|.travis.yml){
deny all;
}
Expand Down
4 changes: 4 additions & 0 deletions containers/nginx/dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ server {
add_header 'Access-Control-Allow-Origin' *;
}

location ~ ^/(manifest.webmanifest|ngsw-worker.js|ngsw.json|safety-worker.js|worker-basic.min.js)$ {
rewrite /var/www/Minds/front/dist/browser/en/$1 last;
}

location ~ (composer.json|composer.lock|.travis.yml){
deny all;
}
Expand Down

0 comments on commit b2bb0cc

Please sign in to comment.