Files
euchre_camp/.env.example

48 lines
1.6 KiB
Bash

# EuchreCamp Environment Configuration
# ============================================
# Copy this file to .env (for local dev) or use
# .env.development / .env.ci for specific environments
# ============================================
# Database Configuration
# ============================================
# IMPORTANT: Use the appropriate DATABASE_URL for your environment:
#
# - Development (ephemeral, synced from prod): euchre_camp_dev
# - CI/Testing (reset before each run): euchre_camp_ci
# - Production (DO NOT USE FOR TESTS): euchre_camp
#
# The .credentials file in the project root contains
# the actual connection strings - DO NOT commit .credentials
DATABASE_PROVIDER=postgresql
# ============================================
# Better Auth Configuration
# ============================================
# Generate a new secret with: openssl rand -base64 32
BETTER_AUTH_SECRET=generate-new-secret-in-production
# Base URL - update for production
BETTER_AUTH_URL=http://localhost:3000
# ============================================
# Application Configuration
# ============================================
NODE_ENV=development
# Comma-separated list of trusted origins
TRUSTED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# ============================================
# Environment-Specific Overrides
# ============================================
# For development (.env.development):
# DATABASE_URL from .credentials (euchre_camp_dev)
# NODE_ENV=development
# BETTER_AUTH_URL=http://localhost:3000
#
# For CI (.env.ci):
# DATABASE_URL from .credentials (euchre_camp_ci)
# NODE_ENV=test
# BETTER_AUTH_URL=http://localhost:3000