pcbjam/web/standalone/.env.production
AI_Assistant 014648807f
Some checks failed
wasm-build.yml / cmms-embed: VITE_LIBS_SOURCE=static (not off) — install the window.kicadLibs bridge (push) Failing after 0s
release / meta (push) Waiting to run
release / build (push) Blocked by required conditions
release / publish-wasm (push) Blocked by required conditions
release / deploy-demo (push) Blocked by required conditions
release / deploy-editor (push) Blocked by required conditions
release / Build all tools + KiCad e2e (Ubicloud) (push) Waiting to run
wasm-build.yml / cmms-embed: VITE_LIBS_SOURCE=static (not off) — install the window.kicadLibs bridge (release) Failing after 0s
cmms-embed: VITE_LIBS_SOURCE=static (not off) — install the window.kicadLibs bridge
off leaves libsSource null, so boot.ts never calls installLibsProvider and
window.kicadLibs is never installed. A C++ libs-bridge call on schematic open
(park site K1, sch_io_pcbjam_lib) then hits undefined -> throws inside a
suspending import -> SuspendError -> abort. static installs the bridge (2
built-in example symbols; answers not-found gracefully otherwise), no backend.

Standalone-only change; dist/ rebuild, no wasm rebuild.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-04 10:13:09 +10:00

33 lines
1.7 KiB
Shell

# CMMS embed (cmms-embed branch). Consumed by `vite build` (mode=production).
# Pair with `vite build --base=/vendor/pcbjam/`. All values are public (they ship
# in the bundle) — no secrets here.
# The PHP adapter. Relative so it resolves against the CMMS origin. The adapter
# handles PATH_INFO, so /api/scopes/... and /api/me land as
# /pcb-project-api.php/api/scopes/... and /pcb-project-api.php/api/me.
VITE_API_BASE_URL=/pcb-project-api.php
# Projects come from the REST adapter above; file bytes fetched + saves PUT back.
VITE_PROJECT_SOURCE=remote
VITE_DOC_SOURCE=api
# No library backend for v1. `static` (not `off`): `off` leaves `libsSource` null so boot.ts
# never calls installLibsProvider → `window.kicadLibs` is never installed → any C++ path that
# resolves a symbol/footprint through the libs bridge on schematic open (park site K1,
# sch_io_pcbjam_lib) calls a method on undefined → throws inside a suspending import →
# SuspendError → abort. `static` installs the bridge backed by 2 built-in example symbols; it
# answers "not found" gracefully for everything else. No backend, no manifest, self-contained.
VITE_LIBS_SOURCE=static
# Flat WASM layout, served static by Apache under the mount (no per-tool subdir,
# VITE_WASM_MANIFEST intentionally unset). Files: kicad_editor.{js,wasm}, wx.js,
# wx-dom.js, images.tar.gz.
VITE_WASM_ROOT=/vendor/pcbjam/wasm
# Cross-tab only; no collab server.
VITE_YJS_PROVIDER=broadcastchannel
# VITE_APP_URL deliberately UNSET — with it set, every non-editor route would
# redirect away from the mount (lib/redirect.ts).
# VITE_USER / VITE_SCOPE deliberately UNSET — identity comes from
# /pcb-project-api.php/api/me, scope from the URL path segment after the mount.