Firebase Hosting with Polymer: Rewrite doesn't work as expected -
i have polymer starter kit app , added static html file called extra.html.
i followed rewrite rule advised in polymer docs , expecting if navigate this url , display extra.html. however, it's fetching index.html instead.
my firebase.json follows:
{ "database": { "rules": "database.rules.json" }, "hosting": { "public": "build/unbundled", "rewrites": [ { "source": "!/__/**", "destination": "/index.html" }, { "source": "**/!(*.js|*.html|*.css|*.json|*.svg|*.png|*.jpg|*.jpeg)", "destination": "/index.html" } ] } }
how display extra.html when navigate https://firebaseurl/extra.html? thanks.
Comments
Post a Comment