【发布时间】:2020-05-05 21:23:21
【问题描述】:
我正在对每个请求调用一个函数。我可以从重写中排除 /test 目录吗?
{
"hosting":{
"public":"build",
"ignore":[
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites":[
{
"source":"/**",
"function":"helloWorld"
},
{
"source":"**",
"destination":"/index.html"
}
]
},
"functions":{
"predeploy":[
"npm --prefix \"$RESOURCE_DIR\" run lint"
]
}
}
【问题讨论】:
标签: firebase google-cloud-functions firebase-hosting