-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
48 lines (41 loc) · 3.5 KB
/
Copy path.env.example
File metadata and controls
48 lines (41 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# ╔═══════════════════════════════════════════════════════════════════╗
# ║ Construct Web Desktop — Environment Variables ║
# ╠═══════════════════════════════════════════════════════════════════╣
# ║ Copy to .env and fill in values for local development. ║
# ║ Vite only exposes VITE_* prefixed variables to the client. ║
# ╚═══════════════════════════════════════════════════════════════════╝
# ── API ──────────────────────────────────────────────────────────────
# Base URL for API requests (defaults to /api for same-origin deployment)
# VITE_API_BASE_URL=/api
# Native OTA live updates. Installed Capacitor apps must use an absolute API URL.
# The `.env.capacitor-staging` and `.env.capacitor-production` files (ignored by
# git) provide those overrides for local native builds. CI injects them directly.
# ── WebSocket ────────────────────────────────────────────────────────
# Override WebSocket base URL (defaults to same origin as the page).
# Vite dev proxies ws://localhost:5173/ws/* → ws://localhost:8787/ws/* automatically.
# Native builds should use an absolute wss:// Worker origin.
# VITE_WS_BASE_URL=
# ── Agent Email ─────────────────────────────────────────────────────
# Domain shown in the UI for native agent inboxes.
# VITE_AGENT_EMAIL_DOMAIN=agents-staging.construct.computer
# ── Build Metadata ───────────────────────────────────────────────────
# Optional app version injected into logs.
# Defaults to the current git short hash in Vite builds.
# VITE_APP_VERSION=
# ── Logging ─────────────────────────────────────────────────────────
# VITE_LOG_LEVEL=debug|info|warn|error
# ── PostHog (product analytics) ─────────────────────────────────────
# EU project UI: https://eu.posthog.com
# Ingest via reverse proxy (required for ad-blocker resilience):
VITE_PUBLIC_POSTHOG_KEY=phc_Wgx6j1nXV6CCqEL602SpqRXrF9fb235klLVzUYHJlpZ
VITE_PUBLIC_POSTHOG_HOST=https://x.construct.computer
VITE_PUBLIC_POSTHOG_UI_HOST=https://eu.posthog.com
# PostHog CLI sourcemaps (optional local): POSTHOG_CLI_TOKEN=phx_... error_tracking:write
# POSTHOG_CLI_ENV_ID=144727
# POSTHOG_CLI_HOST=https://eu.posthog.com
# CI: GitHub secret POSTHOG_PERSONAL_API_KEY
# VITE_PUBLIC_ENVIRONMENT=local
# CI (deploy.yml): secrets VITE_PROJECT_POSTHOG_KEY, VITE_PUBLIC_POSTHOG_HOST,
# VITE_PUBLIC_POSTHOG_UI_HOST; set VITE_PUBLIC_POSTHOG_HOST to https://x.construct.computer
# Set to 1 to disable all PostHog capture (e.g. noisy local dev).
# VITE_POSTHOG_DISABLED=1