-
Notifications
You must be signed in to change notification settings - Fork 8
/
firebase.json
57 lines (57 loc) · 1.76 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "dist",
"rewrites": [
{ "source": "/sitemap.txt", "function": "generateSitemap" },
{ "source": "/404", "function": "notFoundError" },
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
// {
// "source": "/",
// "headers": [
// {
// "key": "Link",
// "value": "</app-admin-admin-module-ngfactory.c238cc83e9597f3b1593.js>;rel=preload;as=script,</main.14df1986f4959c379a78.js>;rel=preload;as=script,</runtime.55af723e44788f68523c.js>;rel=preload;as=script,</safety-worker.js>;rel=preload;as=script,</styles.4f278958c767cb999df1.css>;rel=preload;as=style,</webfont.js>;rel=preload;as=script,"
// }
// ]
// },
{
"source": "**/*.js",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=14400"
}
]
},
{
"source": "blog/*",
"headers": [
{
"key": "Content-Type",
"value": "text/html"
}
]
},
{
"source": "bio",
"headers": [
{
"key": "Content-Type",
"value": "text/html"
}
]
}
]
},
"functions": {
"predeploy": "npm --prefix functions run build"
}
}