# Base default for VITE_API_BASE_URL, all Vite modes. Both .env.development and .env.production
# (committed alongside this file - see the .gitignore comment) override this with the relative
# `/api` proxy path instead, since this box serves both dev and the "production" build through
# vite's own same-origin proxy rather than exposing the backend directly over https - see
# BACKEND_PROXY_TARGET below and stax_dev_mode_is_the_real_slowness in project memory. This
# absolute URL only actually takes effect if this app is ever built and served a different way
# (a real reverse proxy/CDN in front, backend on HTTPS) - don't delete it thinking it's dead,
# it's the fallback for that scenario.
VITE_API_BASE_URL=http://144.76.210.145:8000
# Loopback, not the public IP: vite and the backend run on the same host, so this hop should
# never leave the machine. Pointing it at the public IP used to "work" only by accident, via
# Hetzner NAT-hairpinning a self-connection back through the same firewall path that already
# caused an outage in this project once - every API call paid for a real cloud-network round
# trip for what's actually a loopback-local call. See vite.config.ts.
BACKEND_PROXY_TARGET=http://127.0.0.1:8000

# There used to be a VITE_DEV_ACCESS_TOKEN/VITE_DEV_REFRESH_TOKEN pair here for auto-login in
# dev mode - removed 2026-08-15. It was a single-use, rotating refresh token baked into this
# static file and shared across every consumer (every dev session, every test run, every
# curl); the instant any one of them used it, the backend rotated it and this file's copy went
# dead for everyone else, with no way to keep a static file in sync with a rotating secret.
# That's what "the site is slow/broken" turned out to be, repeatedly. Just log in for real
# instead - real username/password login is just as fast and has no such failure mode. (Local
# dev-only test account credentials live outside version control - do not put them in a
# committed file, this one included.)
