Mah*_*poo 5 node.js firebase firebase-hosting
首先,我必须为 API 指定路径,为常规网站指定第二个路径,所以我想将 API 分离为子域,如下所示
"rewrites":[
{
"source":"domain.com/**",
"destination":"/index.html"
},
{
"source": "api.domain.com/**",
"function": "app"
}
]
Run Code Online (Sandbox Code Playgroud)
我尝试了很多方法都失败了,我该怎么办?
| 归档时间: |
|
| 查看次数: |
1473 次 |
| 最近记录: |