forked from likecoin/liker-land
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase.json
33 lines (33 loc) · 904 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
{
"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 src/nuxt.config.js src/tailwind.config.js functions/ && npm --prefix functions run lint && npm --prefix functions run package "
]
},
"hosting": {
"predeploy": [
"rm -rf public/* && mkdir -p public/_nuxt && cp -a src/.nuxt/dist/client/. public/_nuxt && cp -a src/static/. public/ && cp -a public_base/. public/"
],
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/api/geoip",
"function": "geoipHttp"
},
{
"source": "/api/**",
"function": "apiHttp"
},
{
"source": "**",
"function": "ssrapp"
}
]
}
}