ci(vercel): add Content-Disposition header on installer

This allows doing something like

  curl -O https://install.ohmyz.sh

and have the `install.sh` file automatically saved to its right name.
This commit is contained in:
Marc Cornellà 2023-10-28 10:24:24 +02:00
parent 048455ccef
commit 7348d12f8e
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -2,7 +2,16 @@
"headers": [
{
"source": "/((?!favicon.ico).*)",
"headers": [{ "key": "Content-Type", "value": "text/plain" }]
"headers": [
{
"key": "Content-Type",
"value": "text/plain"
},
{
"key": "Content-Disposition",
"value": "inline; filename=\"install.sh\""
}
]
}
],
"rewrites": [