-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.development
More file actions
34 lines (30 loc) · 1.78 KB
/
Copy path.env.development
File metadata and controls
34 lines (30 loc) · 1.78 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
# ===========================================
# CeraUI — Development environment (TRACKED)
# ===========================================
# Loaded ONLY in development:
# - Vite reads it for `mode === "development"` (frontend dev server / dev build).
# - The root `bun run dev` scripts load it via `dotenv -e .env.development` so the
# Bun backend sees MOCK_SCENARIO.
# It is NEVER loaded by a production build (Vite loads `.env` / `.env.production`
# in `mode === "production"`), so nothing here can reach the shipped bundle.
# Dev WebSocket endpoint (scheme + host, no port). In dev the Vite origin (:6173)
# is NOT the backend, so the frontend dials this host + VITE_SOCKET_PORT instead.
# Production ignores VITE_SOCKET_* entirely and derives the URL from window.location.
VITE_SOCKET_ENDPOINT=ws://localhost
# Backend dev WebSocket port (apps/backend getListenPorts).
VITE_SOCKET_PORT=3002
# Hardware mock scenario consumed by the Bun backend (process.env.MOCK_SCENARIO).
# Scenarios: single-modem | multi-modem-wifi | streaming-active.
MOCK_SCENARIO=multi-modem-wifi
# ── Local dev: device-control channel override (both OPTIONAL, unset by default) ──
# The control channel only dials when CERALIVE_CONTROL_HUB_URL is provisioned, so
# leaving these commented keeps dev exactly as today. Uncomment both to point the
# device at any local WS hub and verify device-control tokens for real.
#
# Hub URL the device should dial (any ws:// or wss:// endpoint).
# CERALIVE_CONTROL_HUB_URL=ws://localhost:8099
#
# Ed25519 public key used to verify the device-control token, as a raw-base64
# 32-byte key (node:crypto encoding) — NOT a PASERK "k4.public.…" string. Generate
# an Ed25519 keypair and use the raw-base64 public-key encoding here.
# PASETO_PUBLIC_KEY=<raw-base64 32-byte Ed25519 public key>