mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Move the artifacts during deployment into adev/ so that its at the same level as the firebase.json file. PR Close #53960
73 lines
1.8 KiB
JSON
73 lines
1.8 KiB
JSON
{
|
|
"hosting": {
|
|
"target": "angular-docs",
|
|
"public": "./build/browser",
|
|
"ignore": ["**/.*"],
|
|
"headers": [
|
|
{
|
|
"source": "assets/tutorials/common/*.jpg",
|
|
"headers": [
|
|
{
|
|
"key": "Cross-Origin-Resource-Policy",
|
|
"value": "cross-origin"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "*.[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].+(css|js)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public,max-age=31536000,immutable"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/[0-9a-f][0-9a-f][0-9a-f].[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].js",
|
|
"headers": [
|
|
{
|
|
"key": "Cross-Origin-Embedder-Policy",
|
|
"value": "require-corp"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/@(ngsw-worker.js|ngsw.json)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "no-cache"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/**",
|
|
"headers": [
|
|
{
|
|
"key": "Cross-Origin-Opener-Policy",
|
|
"value": "same-origin"
|
|
},
|
|
|
|
{
|
|
"key": "Cross-Origin-Embedder-Policy",
|
|
"value": "require-corp"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"rewrites": [
|
|
{
|
|
"source": "**",
|
|
"destination": "/index.html"
|
|
}
|
|
]
|
|
}
|
|
}
|