Configuration

Customize your local development environment with environment variables, API settings, and advanced options.

← Back to Documentation

Environment Settings

Configuration Categories

Environment Variables

Configure your app with .env files or direct variable injection for different environments (local/dev/staging/prod).

NEXT_PUBLIC_API_URL=https://api.dev.local
View Documentation

API Configuration

Set base URLs, rate limits, timeouts, and authentication requirements for external API integrations.

API_TIMEOUT=5000
MAX_REQUESTS=100
API Settings

Advanced Options

Enable experimental features, configure performance optimizations, and tweak internal framework parameters.

ENABLE_EXPERIMENTAL=true
CACHING_LEVEL=2
Learn More

Environment Specific Options

Development

Live-reload, hot module replacement, and detailed error reporting for local workflows.

NODE_ENV=development
DEVTOOLS=true

Production

Optimized builds, performance metrics, and security hardening for deployment.

NODE_ENV=production
OPTIMIZE=true

Sample Configuration

# .env File Structure
NEXT_PUBLIC_API_URL=https://api.dev.local
PORT=3000

# API Configuration
API_RATE_LIMIT=100
API_TIMEOUT=5000

# Feature Flags
ENABLE_EXPERIMENTAL=true
CACHING_ENABLED=true

# Security Settings
SESSION_EXPIRY=3600
JWT_SECRET=my-secret-key

# Performance Settings
MINIFY=true
COMPRESS=true

Place this configuration file in your project root or use the configuration editor in the dashboard.

Manage Variables

Configuration Usage

Node.js Config Load
const config = require('./config');
console.log('API URL:', config.api.url);
console.log('Debug mode:', config.debug.enabled);
View Full Example
JavaScript Environment Variables
if (import.meta.env.VITE_API_URL) {
  fetch(import.meta.env.VITE_API_URL + '/data')
    .then(response => response.json())
    .then(data => console.log(data));}
View Implementation