| 1 | import type { VercelConfig } from "@vercel/config/v1"; |
| 2 | |
| 3 | export const config: VercelConfig = { |
| 4 | git: { |
| 5 | deploymentEnabled: false, |
| 6 | }, |
| 7 | installCommand: "npm install -g vite-plus && vp install --filter '@t3tools/marketing...'", |
| 8 | buildCommand: "vp run --filter @t3tools/marketing build", |
| 9 | outputDirectory: "dist", |
| 10 | // `curl … | sh` needs the scripts served as plain text, uncompressed by |
| 11 | // content negotiation, and never cached past a deploy. |
| 12 | headers: [ |
| 13 | { |
| 14 | source: "/install.sh", |
| 15 | headers: [ |
| 16 | { key: "Content-Type", value: "text/x-shellscript; charset=utf-8" }, |
| 17 | { key: "Cache-Control", value: "public, max-age=300" }, |
| 18 | ], |
| 19 | }, |
| 20 | { |
| 21 | source: "/install.ps1", |
| 22 | headers: [ |
| 23 | { key: "Content-Type", value: "text/plain; charset=utf-8" }, |
| 24 | { key: "Cache-Control", value: "public, max-age=300" }, |
| 25 | ], |
| 26 | }, |
| 27 | ], |
| 28 | redirects: [ |
| 29 | { |
| 30 | source: "/app", |
| 31 | destination: "https://app.t3.codes", |
| 32 | permanent: true, |
| 33 | }, |
| 34 | ], |
| 35 | }; |