Skip to content

Commit

Permalink
Merge branch 'feat/pwa-dev-support' into 'master'
Browse files Browse the repository at this point in the history
Support running PWA locally

See merge request minds/minds!201
  • Loading branch information
markharding committed May 4, 2022
2 parents 0584a91 + b2bb0cc commit a67beb2
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 a67beb2

Please sign in to comment.