Dag*_*adu 8 facebook node.js firebase firebase-hosting
我的 firebase 托管设置目前正在像这样重定向到 index.html。
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "build",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
},
{
"source": "/details/**",
"function": "details"
}
]
}
}Run Code Online (Sandbox Code Playgroud)
但我想根据 Facebook 的 Facebot 等用户代理重定向请求......
有没有办法在到达云功能之前重定向 Firebase 托管上的请求?我知道在函数内部是可能的,但我很想在托管配置上这样做。
| 归档时间: |
|
| 查看次数: |
558 次 |
| 最近记录: |