Deployment configuration for EGREED Deploy
Version-control build settings, redirects, headers, functions, and edge middleware with egreed.json.
Updated July 8, 2026 5 min read
egreed.json
Drop egreed.json in the repo root to override defaults. Fields: framework, install, build, output, env, headers, redirects, rewrites, functions.
Redirects & rewrites
{
"redirects": [{ "source": "/old", "destination": "/new", "permanent": true }],
"rewrites": [{ "source": "/api/(.*)", "destination": "https://api.example.com/$1" }]
}
Custom headers
{
"headers": [{ "source": "/(.*)", "headers": [{ "key": "Cache-Control", "value": "public, max-age=3600" }] }]
}configurationegreed.jsonegreed deploy