Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Commit 14d94fb

Browse files
author
Fahmi Jabbar
committed
Saving firebase.json configuration
1 parent ddaf029 commit 14d94fb

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

firebase.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"hosting": {
3+
"public": ".",
4+
"headers": [
5+
{
6+
"source": "**/*.@(eot|otf|ttf|ttc|woff|font.css)",
7+
"headers": [
8+
{
9+
"key": "Access-Control-Allow-Origin",
10+
"value": "*"
11+
}
12+
]
13+
},
14+
{
15+
"source": "**/*.@(js|css)",
16+
"headers": [
17+
{
18+
"key": "Cache-Control",
19+
"value": "max-age=604800"
20+
}
21+
]
22+
},
23+
{
24+
"source": "**/*.@(jpg|jpeg|gif|png)",
25+
"headers": [
26+
{
27+
"key": "Cache-Control",
28+
"value": "max-age=604800"
29+
}
30+
]
31+
}
32+
],
33+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
34+
"rewrites": [
35+
{
36+
"source": "**",
37+
"destination": "/index.html"
38+
}
39+
]
40+
}
41+
}

0 commit comments

Comments
 (0)