Skip to content

Commit f615a66

Browse files
authored
Update .env.example
1 parent ad0aa78 commit f615a66

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.env.example

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
1-
# Supabase Configuration
1+
# Database Configuration
2+
# Choose your database provider: 'supabase' (default) or 'postgresql'
3+
DATABASE_PROVIDER=supabase
4+
5+
# Supabase Configuration (default)
26
NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
37
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
48
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
59

10+
# PostgreSQL Configuration (for Supabase connection)
11+
DATABASE_URL=postgresql://postgres:[password]@[host]:[port]/postgres
12+
DIRECT_URL=postgresql://postgres:[password]@[host]:[port]/postgres
13+
14+
# Local PostgreSQL Configuration (optional - for local development)
15+
# Only needed when DATABASE_PROVIDER=postgresql
16+
# DATABASE_URL=postgresql://username:password@localhost:5432/kanba_db
17+
# DIRECT_URL=postgresql://username:password@localhost:5432/kanba_db
18+
619
# Stripe Configuration (optional)
720
STRIPE_SECRET_KEY=your_stripe_secret_key
821
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
922
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret
1023

11-
# Next.js Configuration
24+
# Site Configuration
25+
NEXT_PUBLIC_SITE_URL=http://localhost:3000
1226
NEXTAUTH_URL=http://localhost:3000
1327
NEXTAUTH_SECRET=your_nextauth_secret
1428

15-
# Site URL for production
16-
NEXT_PUBLIC_SITE_URL=http://localhost:3000
17-
18-
# Link Preview API Key for Bookmarks
19-
LINKPREVIEW_API_KEY = 'f1....';
29+
# Example PostgreSQL connection strings:
30+
# Local PostgreSQL: postgresql://username:password@localhost:5432/kanba_db
31+
# Docker PostgreSQL: postgresql://postgres:password@localhost:5432/kanba_db
32+
# Railway PostgreSQL: postgresql://username:password@host:port/database
33+
# Supabase PostgreSQL: postgresql://postgres:[password]@[host]:[port]/postgres

0 commit comments

Comments
 (0)