Config Source: Local File
Start with a local file when you are iterating in the repo and want simple, inspectable config. The gateway looks for the config file relative to the worker
When to use this
Key concepts
Repo-grounded example
{
"$schema": "./api-config.schema.json",
"title": "Minimal Gateway",
"cors": {
"allow_origins": ["https://app.example.com"],
"allow_methods": ["GET", "POST", "OPTIONS"],
"allow_headers": ["Content-Type", "Authorization"],
"expose_headers": ["X-Request-Id"],
"allow_credentials": true,
"max_age": 300
},
"paths": [
{
"method": "GET",
"path": "/health",
"response": { "status": "ok" }
}
]
}Troubleshooting
Related docs
Last updated