-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.json
More file actions
60 lines (60 loc) · 1.52 KB
/
firebase.json
File metadata and controls
60 lines (60 loc) · 1.52 KB
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
59
60
{
"functions": {
"source": "functions",
"runtime": "nodejs22",
"predeploy": ["npm --prefix \"$RESOURCE_DIR\" run build"]
},
"firestore": {
"rules": "firestore.rules"
},
"hosting": {
"site": "stackapps-dcab1",
"public": "dist/public",
"predeploy": ["npm run build"],
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"redirects": [
{
"source": "/manage-app",
"destination": "/dashboard",
"type": 301
},
{
"source": "/manage-app/**",
"destination": "/dashboard",
"type": 301
}
],
"rewrites": [
{
"source": "/apps/**",
"function": { "functionId": "ssrAppListing", "region": "us-central1" }
},
{
"source": "/badge/**",
"function": { "functionId": "appBadge", "region": "us-central1" }
},
{
"source": "/sitemap.xml",
"function": { "functionId": "sitemapXml", "region": "us-central1" }
},
{
"source": "/api/**",
"run": { "serviceId": "stackapps-backend", "region": "us-central1" }
},
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*.@(js|mjs|css|woff|woff2|png|jpg|jpeg|gif|svg|ico|webp)",
"headers": [{"key": "Cache-Control", "value": "public, max-age=31536000, immutable"}]
},
{
"source": "**",
"headers": [{"key": "Cache-Control", "value": "no-cache, must-revalidate"}]
}
]
}
}