0π
β
It turned out the problem was in the configuration of firebase.json
, in the section of hosting, I hade enabled "cleanUrls": true
. Removing it made the service worker register again.
this is how it looks now, the default settings:
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
Source:stackexchange.com