Json Firebase主机重定向除一个文件外的所有内容

Json Firebase主机重定向除一个文件外的所有内容,json,firebase,firebase-hosting,Json,Firebase,Firebase Hosting,我将app-ads.txt放在firebase站点的根目录中。 我正在尝试重定向到“www.my-site.com”,除了“app-ads.txt” 例如: www.myFirebase.web.app/index.html-->重定向到www.my-site.com www.myFirebase.web.app/app-ads.txt-->不重定向 这是我的firebase.json { "hosting": { "public": "public", "ignore"

我将app-ads.txt放在firebase站点的根目录中。 我正在尝试重定向到“www.my-site.com”,除了“app-ads.txt”

例如:

www.myFirebase.web.app/index.html-->重定向到www.my-site.com

www.myFirebase.web.app/app-ads.txt-->不重定向

这是我的firebase.json

  {
  "hosting": {
    "public": "public",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "redirects": [
      {
        "source": "/",
        "destination": "http://www.my-site.com",
        "type": 301
      },
      {
        "source": "/**",
        "destination": "http://www.my-site.com",
        "type": 301
      }
    ]
  }
}

我该怎么办?

无法复制,但如果要捕获所有内容,请尝试使用
“**”
作为源代码。如果要捕获所有内容,请尝试使用
“**”
作为源代码。