forked from likecoin/likecoin-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase.json
53 lines (53 loc) · 1.34 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"functions": {
"source": "functions/dist",
"predeploy": [
"npm --prefix src run lint && npm --prefix src run build && rm -rf functions/nuxt && cp -r src/.nuxt/ functions/nuxt/ && cp -r src/server_middleware src/experiments functions/ && cp src/nuxt.config.js functions/ && npm --prefix functions run lint && npm --prefix functions run package "
]
},
"hosting": [{
"target": "button",
"predeploy": [
"rm -rf public/* && cp -r src/.nuxt/dist/client/ public/_nuxt && cp -a src/static/. public/ && cp -a public_base/. public/"
],
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"redirects": [
{
"source": "/api/:api*",
"destination": "https://like.co/api/:api*",
"type": 302
}
],
"rewrites": [
{
"source": "**",
"function": "ssrapp"
}
]
}, {
"target": "superlike",
"public": "public_base",
"ignore": [
"firebase.json",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"function": "superLikeRedirect"
}
],
"appAssociation": "NONE",
"headers": [
{
"source": "/.well-known/apple-app-site-association",
"headers": [{"key": "Content-Type", "value": "application/json"}]
}
]
}]
}