# ---------------------------------------------------------------------------
# Database
# ---------------------------------------------------------------------------
DATABASE_URL="postgresql://user:password@localhost:5432/gamesji?schema=public"

# ---------------------------------------------------------------------------
# IGDB (primary game metadata source — https://api-docs.igdb.com)
# Free tier is for NON-COMMERCIAL use. Since this site runs ads, contact
# partner@igdb.com about commercial terms before going live. See README.
# Create a Twitch app at https://dev.twitch.tv/console/apps to get these.
# ---------------------------------------------------------------------------
IGDB_CLIENT_ID=""
IGDB_CLIENT_SECRET=""

# ---------------------------------------------------------------------------
# RAWG (secondary/supplemental source — https://rawg.io/apidocs)
# Free tier: personal use requires attribution + backlink to RAWG.
# Commercial free tier caps at 100k MAU / 500k pageviews/month — email
# api@rawg.io for higher tiers. No redistribution of raw RAWG data.
# ---------------------------------------------------------------------------
RAWG_API_KEY=""

# ---------------------------------------------------------------------------
# Content generation (Anthropic API — used server-side only, never exposed
# to the client). Get a key at https://console.anthropic.com
# ---------------------------------------------------------------------------
ANTHROPIC_API_KEY=""
ANTHROPIC_MODEL="claude-sonnet-5"

# ---------------------------------------------------------------------------
# Cron / background job authentication.
# Generate with: openssl rand -hex 32
# Every /api/cron/* route requires this as a Bearer token so the discovery
# and generation pipeline can't be triggered by outsiders.
# ---------------------------------------------------------------------------
CRON_SECRET=""

# ---------------------------------------------------------------------------
# Site config
# ---------------------------------------------------------------------------
NEXT_PUBLIC_SITE_URL="https://gamesji.com"
NEXT_PUBLIC_SITE_NAME="GamesJi"
GAMESJI_PLAY_URL="https://gamesji.com/games"

# Optional: Upstash Redis for distributed rate limiting in proxy.ts.
# If unset, an in-memory limiter is used (fine for a single instance,
# not correct across multiple serverless regions/instances).
UPSTASH_REDIS_REST_URL=""
UPSTASH_REDIS_REST_TOKEN=""
