bagsy/apps/api/.env.example
bananabas 4fe4a98b1c feat: Migrate from self-hosted to Vercel + Neon + Clerk
- Move database from self-hosted Postgres to Neon (free tier)
- Replace better-auth with Clerk authentication (email/password + OAuth)
- Integrate Ably for real-time sync (replaces custom WebSocket)
- Remove passkey authentication (pending Apple Developer account)
- Add Clerk Organizations for household management
- Implement custom household join-code flow with Clerk
- Add secure Ably key fetching via backend API
- Update iOS app for Clerk auth and Ably real-time sync
- Configure Vercel deployment settings
- Update environment configuration for new infrastructure

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-06-27 18:59:00 +01:00

21 lines
864 B
Text

# Database (Neon pooled connection string)
# Use the pooled connection string from Neon (ends with -pooler.hostname)
# Example: postgresql://user:password@ep-xyz-123456-pooler.us-east-2.aws.neon.tech/neondb?sslmode=verify-full
DATABASE_URL=postgresql://user:password@ep-xyz-123456-pooler.us-east-2.aws.neon.tech/neondb?sslmode=verify-full
# Clerk Authentication
# Get these from your Clerk Dashboard: https://dashboard.clerk.com
CLERK_SECRET_KEY=sk_test_your-secret-key-here
CLERK_PUBLISHABLE_KEY=pk_test_your-publishable-key-here
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_your-publishable-key-here
# Ably Real-time Sync
# Get this from your Ably Dashboard: https://ably.com/dashboard
ABLY_API_KEY=your-ably-api-key-here
# AI (OpenRouter)
OPENROUTER_API_KEY=your-openrouter-api-key-here
# Next.js
NEXT_PUBLIC_APP_URL=http://localhost:3001
NODE_ENV=development