2026-09-19 19:24:48 +07:00
|
|
|
# Better Auth
|
|
|
|
|
# Generate with: bunx @better-auth/cli secret
|
|
|
|
|
BETTER_AUTH_SECRET=
|
|
|
|
|
# Full absolute URL of the deployed app, e.g. https://example.com
|
|
|
|
|
BETTER_AUTH_URL=
|
|
|
|
|
|
2026-09-19 22:47:26 +07:00
|
|
|
# Public auth URL for the browser client (must match BETTER_AUTH_URL in prod)
|
|
|
|
|
NEXT_PUBLIC_BETTER_AUTH_URL=http://localhost:3000
|
|
|
|
|
|
2026-09-19 19:24:48 +07:00
|
|
|
# Optional: database URL for better-auth (Kysely/Drizzle adapter)
|
|
|
|
|
# DATABASE_URL=postgres://user:pass@localhost:5432/db
|
|
|
|
|
|
|
|
|
|
# Optional: OpenAPI document URL used by openapi-fetch (generate client from it)
|
|
|
|
|
# OPENAPI_URL=/api/openapi.json
|