【发布时间】:2020-03-16 09:27:06
【问题描述】:
假设我有一个域example.com。我通过托管和cli创建了第二个网站sub.example.com。
{
"hosting": [
{
"target": "app",
"public": "public",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
{
"target": "promos",
"public": "public",
"appAssociation": "AUTO",
"rewrites": [
{
"source": "**",
"dynamicLinks": true
}
]
}
]
}
现在,当我去为 sub.example.com 创建没有任何路径前缀的动态链接时,它给了我一个危险信号:
It looks like you already have content served on this path. Specify a different path prefix to avoid conflicts with existing content.
- 我做错了什么?
- 另外,如果这个子域只用于链接,我还需要输入
public字段吗?我不想在上面显示任何内容,只是链接...
【问题讨论】:
标签: firebase firebase-hosting firebase-dynamic-links