Files

20 lines
1.1 KiB
Bash

# Dev-environment BUILD vars — loaded only by `vite build --mode dev` (pnpm run build:dev).
# Never loaded by local `vite` dev (mode "development", uses .env) nor the prod build
# (mode "production", uses .env.production). Safe to commit: placeholders, no secrets.
# Domain: tokencircles.com — dev frontend at dev.tokencircles.com, dev API at api.dev.tokencircles.com.
# Dev frontend talks to the D1 worker API (server mode), not client-only IndexedDB.
VITE_DEFAULT_STORAGE=sqlite
# Absolute origin of the dev API worker. Same registrable domain as the app, so the
# session cookie (SameSite=Lax + COOKIE_DOMAIN=.dev.<domain> on the worker) is sent
# on these cross-subdomain XHRs. Empty/unset would fall back to same-origin /api.
VITE_API_URL=https://api.dev.tokencircles.com
VITE_SITE_DOMAIN=dev.tokencircles.com
# Cloudflare Turnstile (bot protection on the register/login/forgot forms). Leave EMPTY to disable
# the captcha (forms still work). To enable: set this to your Turnstile widget SITE key AND set the
# worker secret TURNSTILE_SECRET — both must be present for the gate to take effect.
VITE_TURNSTILE_SITE_KEY=0x4AAAAAADtAZsLABBBY6Rqe