-
Notifications
You must be signed in to change notification settings - Fork 2
/
firebase.json
58 lines (58 loc) · 1.22 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
58
{
"hosting": {
"public": "output/dist",
"headers": [
{
"source": "/",
"headers": [
{
"key": "Link",
"value": "</33nZ9JlV.svg>;rel=preload;as=script,</runtime.d41d8cd98f00b204e980.bundle.js>;rel=preload;as=script,</main.ca3848c2f9668c05028e.bundle.js>;rel=preload;as=script,</main.7a85e7f248561202a92c9d94a355ae40.bundle.css>;rel=preload;as=style,</service-worker.js>;rel=preload;as=script,</favicon.ico>;rel=preload;as=image,</hn/news?page=1&offset=0>;rel=preload;as=fetch"
}
]
},
{
"source": "**/*.@(svg|css|js|jpg|jpeg|gif|png|ico)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=30672000"
}
]
},
{
"source": "**/service-worker.js",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=0"
}
]
},
{
"source": "**/workbox-*/*.js",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=0"
}
]
}
],
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/hn/**",
"function": "hn"
},
{
"source": "/favicon.ico",
"destination": "/icon_128x128.5104764018eed8be9714e699918521db.png"
}
]
}
}