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.
master
Marc Cornellà 2 years ago
parent 048455ccef
commit 7348d12f8e
No known key found for this signature in database
GPG Key ID: 314585E776A9C1B
  1. 11
      .github/workflows/installer/vercel.json

@ -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": [

Loading…
Cancel
Save