{
"version": 2,
"name": "my-app",
"alias": ["my-domain.com", "my-alias"],
"scope": "my-team",
"env": {
"MY_KEY": "this is the value",
"SECRET": "@my-secret-name"
},
"build": {
"env": {
"MY_KEY": "this is the value",
"SECRET": "@my-secret-name"
}
},
"builds": [
{ "src": "*.html", "use": "@vercel/static" },
{ "src": "*.py", "use": "@vercel/python" },
{ "src": "*.js", "use": "@vercel/node" }
],
"functions": {
"api/test.js": {
"memory": 3008,
"maxDuration": 60
},
"api/test.php": {
"runtime": "[email protected]"
}
},
"routes": [
{ "src": "/custom-page", "headers": { "cache-control": "s-maxage=1000" }, "dest": "/index.html" },
{ "src": "/api", "dest": "/my-api.js" },
{ "src": "/users", "methods": ["POST"], "dest": "/users-api.js" },
{ "src": "/users/(?<id>[^/]*)", "dest": "/users-api.js?id=$id" },
{ "src": "/.*", "dest": "https://my-old-site.com" },
{ "src": "/legacy", "status": 404 },
{ "src": "/redirect", "status": 308, "headers": { "Location": "https://example.com/" } }
],
"regions": ["sfo1", "bru"],
"public": true,
"cleanUrls": true,
"trailingSlash": false,
"redirects": [
{ "source": "/me", "destination": "/profile.html" },
{ "source": "/user", "destination": "/api/user", "permanent": false },
{ "source": "/view-source", "destination": "https://github.com/vercel/vercel" }
],
"rewrites": [
{ "source": "/about", "destination": "/about-our-company.html" },
{ "source": "/resize/:width/:height", "destination": "/api/sharp" },
{ "source": "/user/:id", "destination": "/api/user" },
{ "source": "/proxy/:match*", "destination": "https://example.com/:match*" }
],
"headers": [
{
"source": "/service-worker.js",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=0, must-revalidate"
}
]
},
{
"source": "/api/feed",
"headers": [
{
"key": "Content-Type",
"value": "application/rss+xml"
},
{
"key": "Cache-Control",
"value": "public, max-age=3600"
}
]
},
{
"source": "/(.*)",
"headers": [
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
}
]
}
],
"github": {
"enabled": false,
"autoAlias": false,
"silent": true,
"autoJobCancelation": false
}
}