.env.sample Jun 2026
# Environment mode. Options: 'dev', 'staging', 'prod' # Affects logging verbosity and error reporting. APP_ENV=dev
file is a template or boilerplate version of your application's environment configuration. It lists all the necessary variable keys—like DATABASE_URL STRIPE_API_KEY —without including the actual sensitive values. .env.sample
To use this setup effectively in your project, follow these standard steps: Create the template : Save your required variables in .env.sample Ignore the real file is added to your .gitignore to prevent accidental leaks. Local Setup : Instruct users to copy the sample: cp .env.sample .env # Environment mode
Use .env.sample unless:
// env.ts import cleanEnv, port, str from 'envalid'; # Environment mode. Options: 'dev'
To understand the sample file, you first have to understand the file.

