# ============================================================ # OnlyPets — Environment Variables # Copy this file to .env.local and fill in your values. # NEVER commit .env.local to version control. # ============================================================ # ── Supabase (PostgreSQL) ──────────────────────────────────── # Supabase Dashboard -> Project Settings -> Database -> Connection string # Use the POOLED connection string for DATABASE_URL (port 6543, ?pgbouncer=true) # Use the DIRECT connection string for DIRECT_URL (port 5432) DATABASE_URL="postgresql://postgres.xxxxxxxxxxxx:password@aws-0-eu-central-1.pooler.supabase.com:6543/postgres?pgbouncer=true" DIRECT_URL="postgresql://postgres.xxxxxxxxxxxx:password@aws-0-eu-central-1.pooler.supabase.com:5432/postgres" # ── Clerk (Authentication) ─────────────────────────────────── # Clerk Dashboard -> API Keys NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="pk_test_xxxxxxxxxxxxxxxxxxxx" CLERK_SECRET_KEY="sk_test_xxxxxxxxxxxxxxxxxxxx" # ── Cloudflare R2 (Media Storage) ─────────────────────────── # Cloudflare Dashboard -> R2 -> Account ID CF_ACCOUNT_ID="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # Cloudflare Dashboard -> R2 -> Manage R2 API Tokens R2_ACCESS_KEY_ID="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" R2_SECRET_ACCESS_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # Cloudflare Dashboard -> R2 -> bucket name you create R2_BUCKET_NAME="onlypets-media" # Cloudflare R2 -> bucket -> Settings -> Public Development URL or custom CDN domain NEXT_PUBLIC_R2_PUBLIC_URL="https://pub-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.r2.dev"