matrix-builder / web /.env.example
ruslanmv
Deploy: metrics + docs (Batch 12)
22b729d
Raw
History Blame Contribute Delete
1.95 kB
# Matrix Builder web (Next.js on Vercel) — go-live environment
# Copy to .env.local for local dev, or set these in the Vercel project settings.
# --- Frontend → API (browser-visible) -----------------------------------------------------
# Same-origin path proxied by next.config.ts rewrites to the Matrix Builder HF Space.
# Local dev without a proxy can point straight at the backend: http://localhost:8000
NEXT_PUBLIC_API_BASE_URL=/api/builder
# Optional bearer token for authenticated calls (leave empty for guest/demo flows).
NEXT_PUBLIC_MB_TOKEN=
# Sign in with Google (build-time, inlined into the page; NOT a secret).
# The OAuth 2.0 Web client ID from Google Cloud Console. Leave empty to hide sign-in.
NEXT_PUBLIC_GOOGLE_CLIENT_ID=
# --- Optional Internal AI (OllaBridge) ----------------------------------------------------
# There are NO env vars for this. The optional Internal AI assistant is configured per-browser in
# Account Settings -> System Configuration and stored in localStorage
# ("matrix-builder:ai-settings:v1"). Provider defaults to "none" (zero AI calls). Pair tokens / API
# keys stay in the browser and are never sent to the backend. See docs/ollabridge-internal-ai.md.
# Note: backend AGENT_GENERATOR_MODE (mock|sdk) selects the deterministic engine; it is NOT an AI switch.
# --- Rewrite targets (resolved at BUILD time into the routes manifest) --------------------
# next.config.ts rewrites /api/<svc>/* to these. On Vercel the defaults already work, so
# you usually don't need to set MATRIX_BUILDER_SPACE_URL at all.
# - Vercel : https://ruslanmv-matrix-builder.hf.space/api/builder (the Space's public API)
# - HF Space: http://127.0.0.1:8000 (set by the Dockerfile build stage — local backend)
MATRIX_BUILDER_SPACE_URL=https://ruslanmv-matrix-builder.hf.space/api/builder
AGENT_GENERATOR_SPACE_URL=https://ruslanmv-agent-generator.hf.space
OLLABRIDGE_SPACE_URL=https://ruslanmv-ollabridge.hf.space