Unable to add Firebase Dynamic Links to a project using a custom domain

后端 未结 6 2140
栀梦
栀梦 2021-02-05 01:30

I\'ve created Firebase Dynamic Links in other projects before using the page.link URL prefix (the only option at the time). However that no longer appears to be an option when e

6条回答
  •  轮回少年
    2021-02-05 02:04

    I had a similar problem with the root (apex) domain. Basically, if the prefix (the apex domain in my case) is a URL that gives 200 status response, it won't be accepted. In my case the there was an index.html file inside the public folder. I renamed it to something else and it worked.

    Here's my firebase.json:

    {
      "hosting": {
        "public": "public",
        "ignore": [
          "firebase.json",
          "**/.*",
          "**/node_modules/**"
        ],
        "appAssociation": "AUTO",
        "rewrites": [ { "source": "/**", "dynamicLinks": true } ]
      }
    }
    

提交回复
热议问题