作者:书友78403557 | 来源:互联网 | 2023-06-24 14:40
I have a cloud function
that renders some html.
I'm using firebase hosting to rewrite the path to the function like so:
1 2 3 4 5 6 7 8 9 10
| "rewrites": [
{
"source": "/dynamicHosting",
"function": "dynamicHosting"
},
{
"source": "**",
"destination": "/200.html"
}
] |
If I remove the service worker code, the html from the function
render fine however with the service worker enabled the App's
component renders.
I tried the following in
file:
1
| navigateFallbackWhitelist: [/^(?!\/__).*/, /^\/dynamicHosting\// ] |
But still the same result. Is this a FIrebase hosting issue or SW issue? Or just something I'm missing?
该提问来源于开源项目:GoogleChromeLabs/sw-precache
Most likely, yes, though it would require some consultation with the
maintainers and would not happen until the v3 release of
is final.