.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
DATABASE_URL
secret
Connection string for your hosted Postgres database. Free options include Neon (neon.tech), Supabase, or Railway. It looks like:…
BETTER_AUTH_SECRET
secret
A long, random string Better Auth uses to sign login sessions. Generate one by running: openssl rand -base64 32
BETTER_AUTH_URL
The URL the Express server runs on. Leave this as-is for local development.