forked from cybersemics/em
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase.json
23 lines (23 loc) · 871 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
{
"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" }] }
],
"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"
}
}