-
Notifications
You must be signed in to change notification settings - Fork 2
/
firebase.json
37 lines (37 loc) · 922 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
{
"functions": {
"source": "functions",
"predeploy": [
"npm --prefix src run lint",
"npm --prefix src run build",
"rm -rf functions/src/nuxt",
"mkdir -p functions/lib/nuxt/",
"cp -r src/.nuxt/ functions/lib/nuxt/",
"cp src/nuxt.config.js functions/src",
"cp src/nuxt.config.js functions/lib",
"npm --prefix functions run lint",
"npm --prefix functions run build"
]
},
"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",
"**/.*",
"src/node_modules/**"
],
"rewrites": [
{
"source": "/api/**",
"function": "apiHttp"
},
{
"source": "**",
"function": "ssrapp"
}
]
}
}