Vercel.json problem in Flutter Web

I have problem with vercel.json {
“headers”: [
{
“source”: “/.well-known/apple-developer-merchantid-domain-association”,
“headers”: [
{
“key”: “Content-Type”,
“value”: “text/plain”
}
]
}
]
} , i have added this configure to root of my flutter web project, and i have added file /.well-known/apple-developer-merchantid-domain-association and builded, when I open this url , file is downloading content type is file , I need show text of file content type must be text/plain. How can i fix it , help me pls

Hellom, Can you also try adding Content-Disposition: "inline" ?

{
  "headers": [
    {
      "source": "/.well-known/apple-developer-merchantid-domain-association",
      "headers": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        },
        {
          "key": "Content-Disposition",
          "value": "inline"
        }
      ]
    }
  ]
}

dont work :frowning:


apple-developer-merchantid-domain-association saved without .txt

Are you sure it has to be text/plain not application/json ?

it looks like apple-app-site-association can be placed in a .well-known subdirectory, so perhaps moving apple-app-site-association to /public/.well-known would fix your issue?