Files
angular.js/scripts/docs.angularjs.org-firebase/firebase.json
T
George Kalpakas b481a16576 chore(ci): copy deployment files inside the respective Firebase directories
We have the `scripts/{code,docs}.angularjs.org-firebase/` directories,
which contain the necessary code and config for deploying built files to
the `code-angularjs-org` and `docs-angularjs-org` Firebase projects
respectively.

Previously, some of the files that needed to be deployed to Firebase (or
Google Cloud) were placed outside these directories (e.g. in
`deploy/{code,docs}/`).

Since these files are only used for deploying to Firebase/Google Cloud,
this commit changes the deployment process to instead copy the files
inside the directories. In a subsequent commit, this will allow
simplifying the deployment process, by running it from inside each
directory instead of having to copy the `firebase.json` files to the
repository root (and adjust the paths).

These are the destination directory changes:

| Before       | After                                       |
|--------------|---------------------------------------------|
| deploy/code/ | scripts/code.angularjs.org-firebase/deploy/ |
| deploy/docs/ | scripts/docs.angularjs.org-firebase/deploy/ |
2021-02-06 11:50:06 +02:00

42 lines
896 B
JSON

{
"hosting": {
"public": "deploy",
"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": "/examples/**.csp/*.html",
"headers": [{
"key": "Content-Security-Policy",
"value": "default-src 'self'"
}]
},
{
"source": "/Error404.html",
"headers" : [{
"key" : "X-Robots-Tag",
"value" : "noindex"
}]
},
{
"source": "/@(partials|examples)/**",
"headers" : [{
"key" : "X-Robots-Tag",
"value" : "noindex"
}]
}
]
}
}