.env.development __top__ Jun 2026
# The environment name (usually 'development' for this file) NODE_ENV=development # Port number for the local development server # Full URL for the local frontend APP_URL=http://localhost:3000 # --- API & BACKEND --- # Local backend API URL (standard for general use) API_BASE_URL=http://localhost:8080/api/v1 # Prefix for React (Required for Create React App) REACT_APP_API_URL=http://localhost:8080/api/v1 # Prefix for Vite VITE_API_URL=http://localhost:8080/api/v1 # Prefix for Next.js (Exposed to the browser) NEXT_PUBLIC_API_URL=http://localhost:8080/api/v1 # --- DATABASE (LOCAL DEV ONLY) --- # Connection details for your local database instance
for environment variables to be accessible in the browser. Variables without these prefixes are often ignored to prevent accidental exposure of secrets. : Must start with .env.development
PORT=8080 LOG_LEVEL=debug
// package.json
If you store production AWS keys in a .env file that you accidentally commit to GitHub, bots will find them within minutes. .env.development is rarely committed (but can be, if it contains only harmless dev defaults). # The environment name (usually 'development' for this