pcbjam/web/backend/.env.example

23 lines
969 B
Shell
Raw Normal View History

# Thin reference backend. Copy to backend/.env.
#
# 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.
# 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
# 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