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
This guide explains how to configure the Serverless API Gateway with secure practices for different environments.
π Configuration Files
Core Configuration Files
src/api-config.jsonβ Main API configurationsrc/api-config.schema.jsonβ JSON schema for validationwrangler.tomlβ Cloudflare Workers configurationwrangler.auth.tomlβ Authentication-specific configuration (should be gitignored)
Environment-Specific Configurations
Create separate configuration files for different environments:
src/
βββ api-config.json # Production
βββ api-config.dev.json # Development
βββ api-config.staging.json # Staging
βββ api-config.test.json # Testingπ§ Configuration Templates
Basic API Configuration Template
Supabase Configuration Template
Auth0 Configuration Template
Wrangler Configuration Template
Last updated