Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

vercel.ts

34 lines953 Bytes

1import type { VercelConfig } from "@vercel/config/v1";
2​
3export 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 requires plain, uncompressed scripts with no cache across deploys.
11 headers: [
12 {
13 source: "/install.sh",
14 headers: [
15 { key: "Content-Type", value: "text/x-shellscript; charset=utf-8" },
16 { key: "Cache-Control", value: "public, max-age=300" },
17 ],
18 },
19 {
20 source: "/install.ps1",
21 headers: [
22 { key: "Content-Type", value: "text/plain; charset=utf-8" },
23 { key: "Cache-Control", value: "public, max-age=300" },
24 ],
25 },
26 ],
27 redirects: [
28 {
29 source: "/app",
30 destination: "https://app.t3.codes",
31 permanent: true,
32 },
33 ],
34};