Files
doormile_hub_console/.env.example

22 lines
1.4 KiB
Plaintext

# Doormile Hub Console — frontend configuration
# Copy to `.env` (or `.env.local`) only if you need to override the defaults.
# ── Development ──────────────────────────────────────────────────────────────
# By default the dev server proxies every /api request to the backend
# (see `server.proxy` in vite.config.js). This makes browser requests
# SAME-ORIGIN, so the backend's localhost-only CORS allowlist never applies —
# it works whether you open the app on localhost, a LAN IP, or a hostname.
#
# Leave VITE_API_BASE_URL UNSET in dev so the proxy is used. To point dev at a
# different backend, change the proxy `target` in vite.config.js.
# ── Production ───────────────────────────────────────────────────────────────
# A production build calls the API host directly (default below). The backend
# must allow your deployed origin via CORS, or serve the app behind a reverse
# proxy that forwards /api. Override the host here if needed:
# VITE_API_BASE_URL=https://api.doormile.com
# Shared key for the internal assignment engine (auto-assign / reassign).
# Sent as the `X-Internal-Key` header instead of a Bearer token.
# VITE_INTERNAL_KEY=doormile-internal-2024