/**
* Vercel Configuration Template
* Deploy Next.js, React, or static sites
*/
// vercel.json example
export const vercelConfig = `{
"version": 2,
"framework": "nextjs",
"regions": ["iad1"],
"build": {
"env": {
"NEXT_PUBLIC_API_URL": "@api_url"
}
},
"headers": [
{
"source": "/api/(.*)",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Cache-Control", "value": "no-store" }
]
}
],
"rewrites": [
{ "source": "/api/:path*", "destination": "/api/:path*" }
],
"functions": {
"api/**/*.ts": {
"memory": 1024,
"maxDuration": 10
}
}
}`;
// Environment secrets (set via Vercel CLI or Dashboard)
export const vercelEnvCommands = `
vercel env add DATABASE_URL production
vercel env add API_KEY production
`;