# Copy this file to `.env`, then copy the active local URLs from: # bun run db:dev # DATABASE_URL=... bunx prisma dev ls # # Prisma Next requires PostgreSQL >= 17. # Do not commit real secrets. APP_ORIGIN=http://localhost:3000 BETTER_AUTH_SECRET=replace-with-at-least-32-random-characters DATABASE_URL=postgres://postgres:postgres@localhost:51297/template1?sslmode=disable&connection_limit=10&connect_timeout=0&max_idle_connection_lifetime=0&pool_timeout=0&socket_timeout=0 OPENROUTER_API_KEY=sk-or-v1-your-key OPENROUTER_APP_NAME=Open Chat Local OPENROUTER_SITE_URL=http://localhost:3000 PORT=3000 # If set, Bun proxies durable reads/appends to this Prisma Streams server. # Use the STREAM base URL from `prisma dev ls`, without `/v1/stream/...`. STREAMS_URL=http://127.0.0.1:51299 # If STREAMS_URL is unset, the app starts @prisma/streams-local on this port. STREAMS_PORT=51234 # Bearer key for a remote streams service (src/streams-app). Leave unset for # local development; required when STREAMS_URL points at a deployed app. # STREAMS_API_KEY= # Stripe (optional). Without a secret key the top-up UI is hidden and the # app runs free-credit only. The webhook secret enables /api/billing/webhook # so payments credit even if the user never returns from checkout. # STRIPE_SECRET_KEY=sk_... # STRIPE_WEBHOOK_SECRET=whsec_... # Social sign-in (optional). Each provider appears on the auth screen only # when its credentials are set. # Callback URLs: /api/auth/callback/github and /google # GITHUB_CLIENT_ID= # GITHUB_CLIENT_SECRET= # GOOGLE_CLIENT_ID= # GOOGLE_CLIENT_SECRET= # R2 object store for the deployed streams service (src/streams-app, which # runs @prisma/streams-server). The instance's disk is only the hot tier: # segments upload to the bucket continuously and a fresh instance # rehydrates from it on boot. Required in production, unset for local # development (the chat server embeds @prisma/streams-local instead). # DURABLE_STREAMS_R2_BUCKET= # DURABLE_STREAMS_R2_ACCOUNT_ID= # DURABLE_STREAMS_R2_ACCESS_KEY_ID= # DURABLE_STREAMS_R2_SECRET_ACCESS_KEY=