Skip to content

Commit 09212a6

Browse files
author
Claude Code Developer
committed
feat: update Firebase hosting configuration with rewrites and headers
Signed-off-by: Claude Code Developer <dev@localhost>
1 parent 8016d67 commit 09212a6

1 file changed

Lines changed: 27 additions & 4 deletions

File tree

firebase.json

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,36 @@
11
{
22
"hosting": {
3-
"source": ".",
3+
"public": "dist",
44
"ignore": [
55
"firebase.json",
66
"**/.*",
77
"**/node_modules/**"
88
],
9-
"frameworksBackend": {
10-
"region": "us-east1"
11-
}
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
],
15+
"headers": [
16+
{
17+
"source": "**/*.@(js|css|jpg|jpeg|gif|png|svg|webp|ico|woff|woff2|ttf|eot)",
18+
"headers": [
19+
{
20+
"key": "Cache-Control",
21+
"value": "max-age=31536000, immutable"
22+
}
23+
]
24+
},
25+
{
26+
"source": "index.html",
27+
"headers": [
28+
{
29+
"key": "Cache-Control",
30+
"value": "no-cache"
31+
}
32+
]
33+
}
34+
]
1235
}
1336
}

0 commit comments

Comments
 (0)