generated from isamu/firebase-vue3-startup-kit
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfirebase.json
37 lines (37 loc) · 1.04 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
{
"functions": {
"ignore": ["tests", "*.sh", "*.md", "*.txt", "**/node_modules/**"],
"predeploy": ["npm --prefix \"$RESOURCE_DIR\" run lint", "npm --prefix \"$RESOURCE_DIR\" run build"]
},
"hosting": {
"public": "dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"headers": [
{
"source": "**",
"headers": [
{
"key": "Content-Security-Policy",
"value": "frame-ancestors 'none'"
},
{ "key": "X-Frame-Options", "value": "deny" },
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "X-XSS-Protection", "value": "1; mode=block" },
{ "key": "X-Permitted-Cross-Domain-Policies", "value": "none" },
{ "key": "Referrer-Policy", "value": "no-referrer" }
]
}
],
"rewrites": [
{
"source": "/api/**",
"function": "express_server",
"region": "asia-northeast1"
},
{
"source": "**",
"destination": "/index.html"
}
]
}
}