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

后端 未结 6 2090
栀梦
栀梦 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 01:59

    I had the same issue and got the same error. The problem was that I was redirecting all the routes to index.html. The solution was to restrict the routes to index.html by exclusion.

    "rewrites": [
      {
        "source": "/link/**",
        "dynamicLinks": true
      },
      {
        "source": "!/link/**",
        "destination": "/index.html"
      }
    ]
    

    After deploying the new configuration to Firebase Hosting, I was allowed to use mydomain.com/link as desired.

提交回复
热议问题