t3-code-android-nightly/apps/marketing/vercel.ts
Julius Marminge 8f90b380f6
feat(server): install preview runtimes from release archives (#11318)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-13 21:24:21 -07:00

35 lines
1,006 B
TypeScript

import type { VercelConfig } from "@vercel/config/v1";
export const config: VercelConfig = {
git: {
deploymentEnabled: false,
},
installCommand: "npm install -g vite-plus && vp install --filter '@t3tools/marketing...'",
buildCommand: "vp run --filter @t3tools/marketing build",
outputDirectory: "dist",
// `curl … | sh` needs the scripts served as plain text, uncompressed by
// content negotiation, and never cached past a deploy.
headers: [
{
source: "/install.sh",
headers: [
{ key: "Content-Type", value: "text/x-shellscript; charset=utf-8" },
{ key: "Cache-Control", value: "public, max-age=300" },
],
},
{
source: "/install.ps1",
headers: [
{ key: "Content-Type", value: "text/plain; charset=utf-8" },
{ key: "Cache-Control", value: "public, max-age=300" },
],
},
],
redirects: [
{
source: "/app",
destination: "https://app.t3.codes",
permanent: true,
},
],
};