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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -