-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.json
45 lines (45 loc) · 1020 Bytes
/
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
41
42
43
44
45
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "public",
"rewrites": [
{
"source": "/api/v1/**",
"function": "webApi"
},
{
"source": "/sendemail",
"function": "sendEmail"
},
{
"source": "!/@(js|img|node_modules)/**",
"destination": "/index.html"
}
],
"redirects": [ {
"source": "/slides",
"destination": "https://docs.google.com/presentation/d/1fOXyFDFC-qjj-6yFft6S7XHlt0fHSqYhBjPpkCbIN8Q/edit?usp=sharing",
"type": 301
},
{
"source": "/amp.html",
"destination": "/",
"type": 301
}],
"headers": [{
"source": "**/*.@(eot|otf|ttf|ttc|woff|font.css|jpg|jpeg|gif|png|svg)",
"headers": [ {
"key": "Access-Control-Allow-Origin",
"value": "*"
} ]
}]
},
"functions": {
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
]
}
}