Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# Database
# For local development, use SQLite:
# For local development, you can use SQLite:
# DATABASE_URL="file:./dev.db"
# For production, use PostgreSQL (Vercel Postgres, Railway, Supabase, etc.):
DATABASE_URL="postgresql://username:password@hostname:port/database"
# DIRECT_URL="file:./dev.db"

# For production, use PostgreSQL (Vercel Postgres, Neon, Supabase, Railway, etc.):
# Vercel Postgres:
DATABASE_URL="postgres://default:[email protected]:5432/verceldb?sslmode=require"
DIRECT_URL="postgres://default:[email protected]:5432/verceldb?sslmode=require"

# Development Mode (Local Development Only)
# Set to "true" to bypass authentication and access all features as admin
# WARNING: Never enable in production! Only for local development.
# DEV_MODE="true"

# Neon (recommended for development):
# DATABASE_URL="postgresql://user:[email protected]/neondb?sslmode=require"
# DIRECT_URL="postgresql://user:[email protected]/neondb?sslmode=require"

# NextAuth.js
NEXTAUTH_SECRET="your-secret-key-here"
Expand All @@ -11,6 +24,12 @@ NEXTAUTH_URL="http://localhost:3000"
# GitHub OAuth (for authentication)
GITHUB_CLIENT_ID="your-github-client-id"
GITHUB_CLIENT_SECRET="your-github-client-secret"
GITHUB_ORG="Vets-Who-Code"

# Email (Resend)
# Get your API key from https://resend.com/api-keys
RESEND_API_KEY="re_xxxxxxxxxxxxxxxxxxxxxxxxxx"
EMAIL_FROM="Vets Who Code <[email protected]>"

# Optional: Other OAuth providers
# GOOGLE_CLIENT_ID="your-google-client-id"
Expand Down
Loading