|
1 | | -# Supabase Configuration |
| 1 | +# Database Configuration |
| 2 | +# Choose your database provider: 'supabase' (default) or 'postgresql' |
| 3 | +DATABASE_PROVIDER=supabase |
| 4 | + |
| 5 | +# Supabase Configuration (default) |
2 | 6 | NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url |
3 | 7 | NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key |
4 | 8 | SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key |
5 | 9 |
|
| 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 | + |
6 | 19 | # Stripe Configuration (optional) |
7 | 20 | STRIPE_SECRET_KEY=your_stripe_secret_key |
8 | 21 | NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key |
9 | 22 | STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret |
10 | 23 |
|
11 | | -# Next.js Configuration |
| 24 | +# Site Configuration |
| 25 | +NEXT_PUBLIC_SITE_URL=http://localhost:3000 |
12 | 26 | NEXTAUTH_URL=http://localhost:3000 |
13 | 27 | NEXTAUTH_SECRET=your_nextauth_secret |
14 | 28 |
|
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