# Reference for every env var the site + AI service understand.
# `pnpm dev` reads from .env in this same directory. In production each
# variable is set via your hosting platform (Render Blueprint).

# --- Site ---
# SITE_URL                Public origin of the site (sitemaps, OG meta).
SITE_URL=http://localhost:4321

# PUBLIC_AI_SERVICE_URL   Two accepted shapes:
#   1. Bare Render private-network hostname like "my-project-ai-abc".
#      Client expands to https://<host>.onrender.com.
#   2. Fully-qualified URL like https://helper.mysite.com or
#      http://localhost:4111. Used as-is.
PUBLIC_AI_SERVICE_URL=http://localhost:4111

# PUBLIC_PROGRESS_BACKEND  "local" (default) or "remote" (Tier 2).
#   remote requires DATABASE_URL.
# PUBLIC_PROGRESS_BACKEND=remote

# --- Database (Tier 2 only) ---
# DATABASE_URL            Postgres connection string.
# DATABASE_URL=postgres://handzon:handzon@localhost:5432/handzon

# --- AI service ---
# ALLOWED_ORIGIN          Comma-separated list of allowed CORS origins.
#   Same hostname-expansion rule as PUBLIC_AI_SERVICE_URL.
ALLOWED_ORIGIN=http://localhost:4321

# Uncomment + set ONE provider key matching src/config/ai.ts. Leave
# all commented if you're running BYOK-only (the learner provides
# their key via the chat UI).
# ANTHROPIC_API_KEY=
# OPENAI_API_KEY=
# GOOGLE_GENERATIVE_AI_API_KEY=
# OPENAI_COMPATIBLE_API_KEY=
# OPENAI_COMPATIBLE_BASE_URL=https://api.groq.com/openai/v1
