Files
euchre_camp/.env.example
T
david 28fecdfaad refactor: remove all SQLite code, standardize on PostgreSQL
- Remove database provider switching logic from prisma.ts and auth.ts
- Hardcode PostgreSQL as the only supported database
- Remove switch-database.js and use-dev-db.js scripts
- Remove Python utility scripts that used sqlite3 directly
- Update justfile to remove SQLite test targets
- Update package.json to remove db:switch script
- Update Dockerfile.ci-base to default to PostgreSQL
- Update .env.example to remove SQLite mention
- Update playwright.config.ts comments
- Update .gitignore to remove SQLite file patterns

This eliminates the root cause of test failures: the dev server and test
Prisma client were using different databases (PostgreSQL vs SQLite).
2026-05-02 04:09:37 -07:00

55 lines
2.0 KiB
Bash

# EuchreCamp Environment Configuration
# Copy this file to .env and fill in your values
# ============================================
# Database Configuration
# ============================================
# PostgreSQL connection string
# Format: postgresql://username:password@host:port/database
DATABASE_URL=postgresql://euchre:euchrepassword@localhost:5432/euchre_camp
# Shadow database for Prisma migrations (optional for PostgreSQL)
DATABASE_SHADOW_URL=postgresql://euchre:euchrepassword@localhost:5432/euchre_camp_shadow
# Database provider (postgresql)
DATABASE_PROVIDER=postgresql
# ============================================
# Better Auth Configuration
# ============================================
# Secret key for session encryption (generate a strong random string)
# Run: openssl rand -base64 32
BETTER_AUTH_SECRET=your-secret-key-change-in-production
# Base URL for authentication callbacks
# For production: https://your-domain.com
BETTER_AUTH_URL=http://localhost:3000
# ============================================
# Application Configuration
# ============================================
# Environment: development, production, test
NODE_ENV=production
# Trusted origins for CORS and authentication
# Add your domain(s) for production
TRUSTED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# ============================================
# Optional: External Services
# ============================================
# If using external database (e.g., Supabase, Railway)
# DATABASE_URL=postgresql://user:pass@host:port/db
# If using external auth provider
# BETTER_AUTH_URL=https://your-app.com
# ============================================
# CasaOS Deployment Notes
# ============================================
# When deploying to CasaOS, set these via the UI:
# 1. DATABASE_URL: Your PostgreSQL connection string
# 2. BETTER_AUTH_SECRET: Generate with: openssl rand -base64 32
# 3. BETTER_AUTH_URL: Your app's public URL
# 4. TRUSTED_ORIGINS: Your app's public URL(s)