2026-06-09 12:35:46 +02:00
|
|
|
# Thin reference backend. Copy to backend/.env.
|
2026-06-15 11:12:56 +02:00
|
|
|
#
|
|
|
|
|
# It uses NO database — it serves a single project folder off disk plus a small
|
|
|
|
|
# set of example libraries. The example libs are self-provisioned on `dev`/`start`
|
|
|
|
|
# (see src/extract/ensure-example-libs.ts): a curated slice of upstream KiCad
|
|
|
|
|
# symbol + footprint libs is cloned + extracted into ./.libs the first time.
|
2026-06-09 12:35:46 +02:00
|
|
|
|
|
|
|
|
# Absolute or relative path to the single KiCad project folder to serve.
|
|
|
|
|
PROJECT_DIR=../../tests/fixtures/demo
|
|
|
|
|
|
|
|
|
|
# Port to listen on (the standalone's VITE_API_BASE_URL must match this).
|
|
|
|
|
PORT=3060
|
|
|
|
|
|
|
|
|
|
# Browser origin allowed to call this backend (the Vite dev server).
|
|
|
|
|
CORS_ORIGIN=http://localhost:3048
|
2026-06-15 11:12:56 +02:00
|
|
|
|
|
|
|
|
# Origin (read-only) libraries dir. Unset ⇒ defaults to ./.libs (auto-provisioned).
|
|
|
|
|
# Point it at your own fixtures tree to override.
|
|
|
|
|
# LIBS_DIR=./.libs
|
|
|
|
|
|
|
|
|
|
# Writable user libraries dir (symbols/footprints created in the editor).
|
|
|
|
|
# Unset ⇒ defaults to ./.user-libs.
|
|
|
|
|
# USER_LIBS_DIR=./.user-libs
|