Files
orangecat/vercel.json
T
Your Name bc63b2262a feat: setup GitHub + Vercel automatic deployment
- Add CI workflow for automated checks (lint, test, type-check)
- Configure Vercel GitHub integration
- Add deployment monitoring and setup scripts
- Update deployment documentation
- Fix .env.local protection (preserve existing variables)
- Add restore script for missing env variables
2025-12-12 16:45:15 +01:00

142 lines
2.9 KiB
JSON

{
"version": 2,
"alias": ["orangecat.ch"],
"framework": "nextjs",
"buildCommand": "npm run build",
"outputDirectory": ".next",
"devCommand": "npm run dev",
"installCommand": "npm install && npm install --include=optional sharp",
"env": {
"NODE_ENV": "production",
"NEXT_TELEMETRY_DISABLED": "1",
"NPM_CONFIG_FUND": "false"
},
"build": {
"env": {
"NODE_ENV": "production",
"NEXT_TELEMETRY_DISABLED": "1",
"DISABLE_ESLINT_PLUGIN": "true",
"SKIP_ENV_VALIDATION": "true",
"NODE_OPTIONS": "--max-old-space-size=4096",
"SHARP_VERSION": "0.34.2"
}
},
"functions": {
"app/api/**/*.ts": {
"maxDuration": 30,
"memory": 1024
},
"src/pages/api/**/*.ts": {
"maxDuration": 30,
"memory": 1024
}
},
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "Permissions-Policy",
"value": "camera=(), microphone=(), geolocation=()"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=31536000; includeSubDomains; preload"
}
]
},
{
"source": "/api/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
},
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self'; connect-src 'self' https:; frame-ancestors 'none';"
}
]
},
{
"source": "/static/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/_next/static/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
],
"redirects": [
{
"source": "/health",
"destination": "/api/health",
"permanent": false
},
{
"source": "/status",
"destination": "/api/health",
"permanent": false
}
],
"rewrites": [
{
"source": "/sitemap.xml",
"destination": "/api/sitemap"
},
{
"source": "/robots.txt",
"destination": "/api/robots"
}
],
"crons": [
{
"path": "/api/cron/cleanup",
"schedule": "0 2 * * *"
}
],
"github": {
"autoAlias": false,
"autoJobCancelation": true,
"silent": false,
"enabled": true
},
"cleanUrls": true,
"trailingSlash": false
}