/
firebase.json
24 lines (24 loc) · 977 Bytes
/
firebase.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"hosting": {
"headers": [
{ "source": "**/*.chunk.*", "headers": [{ "key": "Cache-Control", "value": "31536000" }] },
{ "source": "**/.woff2", "headers": [{ "key": "Cache-Control", "value": "31536000" }] },
{ "source": "/", "headers": [{ "key": "Cache-Control", "value": "no-cache" }] },
{ "source": "/index.html", "headers": [{ "key": "Cache-Control", "value": "no-cache" }] },
{ "source": "/service-worker.js", "headers": [{ "key": "Cache-Control", "value": "no-cache" }] },
{ "source": "/scripts/firebase-v*", "headers": [{ "key": "Cache-Control", "value": "31536000" }] }
],
"public": "build",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
"functions": {
"predeploy": ["npm --prefix \"$RESOURCE_DIR\" run lint", "npm --prefix \"$RESOURCE_DIR\" run build"],
"source": "./functions"
}
}