# Local secrets. NOT checked into git. Copy this to `.env.local` and fill in.
#
# ONE FILE PER KEY: keep every key in EXACTLY ONE of `.env` / `.env.local`.
# `.env.local` is loaded AFTER `.env` and overrides it, so a key set in both
# means editing only one file has confusing effects: emptying the value in
# `.env.local` overrides `.env` (the value goes away), but DELETING the line in
# `.env.local` lets `.env`'s old value resurface. Secrets belong here, in
# `.env.local`, and NOT in `.env`. Run with LUCKYSTACK_ENV_DEBUG=1 to list any
# key that ended up in both files.

# Database connection used by Prisma. This is pre-filled for the provider you
# chose at scaffold time; the other formats are shown for when you switch.
DATABASE_URL="{{DATABASE_URL}}"
#   mongodb:    mongodb://root:PASSWORD@127.0.0.1:27017/{{PROJECT_NAME}}?authSource=admin&directConnection=true&replicaSet=rs0
#               (Prisma needs a replica set — `rs0` here; for Atlas use the mongodb+srv URI it gives you)
#   postgresql: postgresql://user:password@localhost:5432/{{PROJECT_NAME}}
#   mysql:      mysql://user:password@localhost:3306/{{PROJECT_NAME}}
#   sqlite:     file:./dev.db

# Redis credentials (only required when your Redis instance has auth).
REDIS_USER=
REDIS_PASSWORD=

# ───────────────────────────────── OAuth ────────────────────────────────────
{{OAUTH_ENV_VARS}}

# ─────────────────────────── Transactional email ───────────────────────────
# Every provider is enable-later: install the package(s), set the keys, restart.
# The chosen adapter's keys are uncommented below; alternatives stay commented.
{{EMAIL_ENV_VARS}}

# ──────────────────────── Observability / error tracking ────────────────────
# Sentry + PostHog auto-wire from env at boot; Datadog needs the dd-trace block
# in server/server.ts uncommented (it must load before everything).
{{MONITORING_ENV_VARS}}

# Test-only — protects /_test/reset in dev. Set this if you run integration tests.
TEST_RESET_TOKEN=
