fix firebase deploy settings

This commit is contained in:
Amruth Pillai
2020-10-10 12:32:19 +05:30
parent c704f8029b
commit 52e43638e7
2 changed files with 19 additions and 50 deletions

View File

@ -1,5 +1,14 @@
{ {
"projects": { "projects": {
"default": "rx-resume" "default": "rx-resume"
},
"targets": {
"rx-resume": {
"hosting": {
"rxresume": [
"public"
]
}
}
} }
} }

View File

@ -1,53 +1,13 @@
{ {
"hosting": [ "hosting": {
{ "target": "rxresume",
"target": "rxresume", "public": "./public",
"public": "public", "ignore": [
"ignore": [ "**/.*",
"**/.*", "firebase.json",
"firebase.json", "**/node_modules/**"
"**/node_modules/**" ]
], },
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "cache-control",
"value": "cache-control: public, max-age=86400, must-revalidate"
}
]
},
{
"source": "static/**",
"headers": [
{
"key": "cache-control",
"value": "public, max-age=604800, immutable"
}
]
},
{
"source": "**/*.@(css|js|woff2|jpg|png)",
"headers": [
{
"key": "cache-control",
"value": "public, max-age=86400, immutable"
}
]
},
{
"source": "sw.js",
"headers": [
{
"key": "cache-control",
"value": "cache-control: public, max-age=86400, must-revalidate"
}
]
}
]
}
],
"emulators": { "emulators": {
"functions": { "functions": {
"port": 5001 "port": 5001