目前,我有以下firebase.json。我想将https://myapp.firebaseapp.com/api点的所有请求都重写为https://myapp.appspot.com/api(我的应用引擎服务之一)。像appengine使用的dispatch.yaml
这样的东西,我该怎么做?我不想使用DNS和像api.xxxx.com/api
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/api**",
"destination": "https://myapp.appspot.com/api"
},
{
"source": "!/api/**",
"destination": "/index.html"
}
]
}
}