Skip to content

Commit

Permalink
fix firebase deploy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Oct 10, 2020
1 parent c704f80 commit 52e4363
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 50 deletions.
11 changes: 10 additions & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"projects": {
"default": "rx-resume"
},
"targets": {
"rx-resume": {
"hosting": {
"rxresume": [
"public"
]
}
}
}
}
}
58 changes: 9 additions & 49 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,13 @@
{
"hosting": [
{
"target": "rxresume",
"public": "public",
"ignore": [
"**/.*",
"firebase.json",
"**/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"
}
]
}
]
}
],
"hosting": {
"target": "rxresume",
"public": "./public",
"ignore": [
"**/.*",
"firebase.json",
"**/node_modules/**"
]
},
"emulators": {
"functions": {
"port": 5001
Expand Down

0 comments on commit 52e4363

Please sign in to comment.