Overview
This document provides detailed guidance on how to use the provided JSON configuration for setting up and managing your application's server, CORS (Cross-Origin Resource Sharing) settings, authorizati
📁 Configuration Files
Core Configuration Files
Environment-Specific Configurations
🔧 Configuration Templates
Basic API Configuration Template
{
"$schema": "./api-config.schema.json",
"title": "Your API Title",
"description": "Description of your API",
"cors": {
"allow_origins": ["https://your-domain.com"],
"allow_methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
"allow_headers": ["Content-Type", "Authorization"],
"expose_headers": ["*"],
"allow_credentials": true,
"max_age": 3600
},
"paths": [
{
"method": "GET",
"path": "/health",
"response": { "status": "ok", "version": "1.0.0" }
},
{
"method": "GET",
"path": "/api/v1/public",
"response": {
"message": "This is a public endpoint"
},
"auth": false
}
]
}Supabase Configuration Template
Auth0 Configuration Template
Wrangler Configuration Template
✅ Canonical Examples
Last updated