los service workers necesitan servirse dentro de la raíz del sitio
por políticas de permisos no pueden alojarse en subdirectorios sin perder acceso a todo el sitio. con este cambio redirigimos el sw.js en la raíz del sitio a webpack-dev-server
This commit is contained in:
parent
35f4c08095
commit
d69ef0c6db
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ server {
|
||||||
proxy_pass http://127.0.0.1:65001;
|
proxy_pass http://127.0.0.1:65001;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /sw.js {
|
||||||
|
proxy_pass http://127.0.0.1:65001;
|
||||||
|
}
|
||||||
|
|
||||||
location /sockjs-node/ {
|
location /sockjs-node/ {
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|
Loading…
Reference in a new issue