This repository has been archived by the owner on Jul 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
firebase.json
40 lines (40 loc) · 2.27 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
{
"hosting": {
"public": "build/es5-bundled",
"rewrites": [
{
"source": "/hn/**", "function": "hn"
},
{
"source": "!/__/**",
"destination": "/index.html"
},
{
"source": "**/!(*.js|*.html|*.css|*.json|*.svg|*.png|*.jpg|*.jpeg)",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/item/*",
"headers": [{"key": "Link", "value": "</node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js>;rel=preload;as=script,</node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js>;rel=preload;as=script,</src/hn-app.html>;rel=preload;as=document,</src/hn-item.html>;rel=preload;as=document"}]
},
{
"source": "/user/*",
"headers": [{"key": "Link", "value": "</node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js>;rel=preload;as=script,</node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js>;rel=preload;as=script,</src/hn-app.html>;rel=preload;as=document,</src/hn-user.html>;rel=preload;as=document"}]
},
{
"source": "/",
"headers": [{"key": "Link", "value": "</node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js>;rel=preload;as=script,</node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js>;rel=preload;as=script,</src/hn-app.html>;rel=preload;as=document,</src/hn-list.html>;rel=preload;as=document,</hn/news?page=1>;rel=preload"}]
},
{
"source": "/top/**",
"headers": [{"key": "Link", "value": "</node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js>;rel=preload;as=script,</node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js>;rel=preload;as=script,</src/hn-app.html>;rel=preload;as=document,</src/hn-list.html>;rel=preload;as=document,</hn/news?page=1>;rel=preload"}]
},
{
"source": "/?(new|ask|show|jobs)/**",
"headers": [{"key": "Link", "value": "</node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js>;rel=preload;as=script,</node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js>;rel=preload;as=script,</src/hn-app.html>;rel=preload;as=document,</src/hn-list.html>;rel=preload;as=document"}]
}
]
}
}