可以重写基础 URL 与在 Firebase 中添加的短 ID 相比吗?
Possible to rewrite base URL vs one with short ID added in Firebase?
我要支持https://example.com/7_8jkil (ie. a shortid) be handled by one page in my firebase app. I currently have it working as https://example.com/room/7_8jkil
考虑到 Firebase 重写中的模式匹配,我不确定它是否可行。
这是我当前的重写代码:
"rewrites": [
{
"source": "/room/**",
"destination": "/room.html"
},
{
"source": "**",
"destination": "/index.html"
}
]
奇怪的是,我尝试了以下方法,它似乎有效!
"rewrites": [
{
"source": "/**",
"destination": "/room.html"
},
{
"source": "**",
"destination": "/index.html"
}
]
我要支持https://example.com/7_8jkil (ie. a shortid) be handled by one page in my firebase app. I currently have it working as https://example.com/room/7_8jkil
考虑到 Firebase 重写中的模式匹配,我不确定它是否可行。
这是我当前的重写代码:
"rewrites": [
{
"source": "/room/**",
"destination": "/room.html"
},
{
"source": "**",
"destination": "/index.html"
}
]
奇怪的是,我尝试了以下方法,它似乎有效!
"rewrites": [
{
"source": "/**",
"destination": "/room.html"
},
{
"source": "**",
"destination": "/index.html"
}
]