# =============================================================================
# Control Center — environment variables
# =============================================================================
# Copy this file to `.env` and fill in your local values. `.env` is gitignored.
#
# Two sets of vars live here:
#   1. Vite build-time vars (VITE_*) read by the React app at dev/build time.
#   2. Playwright test runner vars read only by the e2e test process.
# =============================================================================

# -----------------------------------------------------------------------------
# Vite (read by the SPA itself)
# -----------------------------------------------------------------------------
# Internal API base URL — accessible via VPN only.
VITE_API_BASE_URL=https://internal.halobestie.com

# -----------------------------------------------------------------------------
# Playwright e2e tests (read by `npm run test:e2e`)
# -----------------------------------------------------------------------------
# Where the CC dev server is reachable (the SPA itself). Override to point at
# a CC dev server running on another machine.
CC_BASE_URL=http://localhost:5173

# Where the internal backend listener is reachable. Used by test setup
# helpers that mint test JWTs / seed fixtures via the internal API.
BACKEND_INTERNAL_URL=http://localhost:3001

# Test CC user credentials — must already exist in the control_center_users
# table on the target backend. Use the seeded admin (admin@halobestie.com /
# ChangeMe123!) for local dev, or provision a dedicated test operator.
CC_TEST_EMAIL=test-operator@example.com
CC_TEST_PASSWORD=changeme
