Files
angular.js/scripts/docs.angularjs.org-firebase/firebase.json
T
Martin Staffa cd700f65f4 chore(docs.angularjs.org): only deploy production index.html as entry file
Previously, we rewrote index.html to index-production.html, but Firebase ignored
this, probably because an exact file match always takes priority. This lead
to the problem thatthe root - angularjs.org - didn't include the angular.js source
files from the CDN
2018-03-01 16:57:56 +01:00

35 lines
728 B
JSON

{
"hosting": {
"public": "../../deploy/docs",
"redirects": [
{
"source": "/error/:namespace\\::error*",
"destination": "/error/:namespace/:error*",
"type": 302
}
],
"rewrites": [
{
"source": "**/*!(.@(jpg|jpeg|gif|png|html|js|map|json|css|svg|ttf|txt|woff|woff2|eot|xml))",
"function": "sendFile"
}
],
"headers": [
{
"source": "/Error404.html",
"headers" : [{
"key" : "X-Robots-Tag",
"value" : "noindex"
}]
},
{
"source": "/@(partials|examples)/**",
"headers" : [{
"key" : "X-Robots-Tag",
"value" : "noindex"
}]
}
]
}
}