Configuration
Customize your environment and API behavior with these configuration options.
Environment Variables
Local Development
# .env.dev API_BASE_URL=https://api.dev.local LOG_LEVEL=debug PORT=3000
Configuration for local development environment.
Production
# .env.prod API_BASE_URL=https://api.prod.local LOG_LEVEL=warn PORT=80
Configuration for production environment.
API Configuration
Performance Tuning
Configuration Usage
JavaScript
.env
import config from 'dotenv/config'; const env = process.env.NODE_ENV;
cURL
API
curl -X GET 'https://api.dev.local/config' \ -H 'X-API-KEY: YOUR_KEY'