2026-06-01 16:30:29 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2026-06-09 12:35:46 +02:00
|
|
|
# This is a standalone, frontend-only workspace: the `standalone` editor app
|
|
|
|
|
# and an example `backend`. Each app reads its OWN .env — see:
|
|
|
|
|
# standalone/.env.example (Vite frontend)
|
|
|
|
|
# backend/.env.example (thin reference backend)
|
|
|
|
|
# Copy each to a sibling `.env`. The values below are only a convenience
|
|
|
|
|
# overview; turbo passes these through to the apps.
|
2026-06-01 16:30:29 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
2026-06-09 12:35:46 +02:00
|
|
|
# --- standalone editor (Vite, must be VITE_-prefixed) ---
|
|
|
|
|
# Backend implementing the @pcbjam/shared contract (the example backend, or any
|
|
|
|
|
# conforming backend such as the closed app's server). Leave unset to use only
|
|
|
|
|
# the local-folder loader.
|
|
|
|
|
VITE_API_BASE_URL=http://localhost:3060
|
|
|
|
|
# Where the WASM glue/artifacts are served from. SAME-ORIGIN "/wasm" is required
|
|
|
|
|
# because KiCad WASM pthread workers cannot be created cross-origin; on `dev` the
|
|
|
|
|
# artifacts are symlinked into standalone/public/wasm and served by Vite at /wasm.
|
|
|
|
|
# For prod, set to an absolute URL whose origin also satisfies the COEP rules.
|
|
|
|
|
VITE_WASM_ASSET_BASE_URL=/wasm
|
|
|
|
|
# Override the artifact source dir the dev symlink points at (default:
|
|
|
|
|
# <repo>/tests/apps/kicad, populated by tests/scripts/setup-kicad-wasm.sh).
|
|
|
|
|
# WASM_SRC_DIR=
|
2026-06-01 16:30:29 +02:00
|
|
|
|
2026-06-09 12:35:46 +02:00
|
|
|
# --- example backend ---
|
|
|
|
|
# Absolute or relative path to a single KiCad project folder to serve.
|
|
|
|
|
PROJECT_DIR=../../tests/fixtures/demo
|
|
|
|
|
# Port the backend listens on (the standalone's VITE_API_BASE_URL must match).
|
|
|
|
|
PORT=3060
|
|
|
|
|
# Browser origin allowed to call the backend (the Vite dev server).
|
2026-06-01 16:30:29 +02:00
|
|
|
CORS_ORIGIN=http://localhost:3048
|