-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
marcelreit edited this page Mar 30, 2026
·
1 revision
This document lists configuration knobs that affect behavior in production and development.
File: next.config.ts
-
NEXT_ALLOWED_DEV_ORIGINS(CSV)- Used only in development mode to set
allowedDevOrigins. - Example:
NEXT_ALLOWED_DEV_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
- Used only in development mode to set
-
NEXT_PUBLIC_APP_VERSION- Displayed in Settings.
- CI sets this to the Git tag
vX.Y.Zwhen building from a tag, otherwise to the short SHA. - Local builds can set it to
dev.
These are read server-side and can be changed without rebuilding the Docker image.
-
NEXT_PUBLIC_ENABLE_DEBUG_MODE-
1enables debug UI controls even in production. - Implemented as runtime config via
GET /api/runtime-config(reload the page after changing).
-
-
ENABLE_DEBUG_MODE-
1enables server-side debug-only API features. - Example: allowing
POST /api/logo?action=clear.
-
-
LOGO_DEV_TOKEN- Token for logo.dev used by
GET /api/logowhen fetching logos.
- Token for logo.dev used by
-
LOGO_MAX_BYTES- Max bytes for downloaded logos (default 512 KiB; clamped to a sane max).
Note: despite the NEXT_PUBLIC_ prefix, NEXT_PUBLIC_ENABLE_DEBUG_MODE is intentionally treated as runtime config in this project (it is not embedded into the client bundle).
GET /api/stations supports:
-
includeClosed=1to include closed stations (defaults to false). -
debug=1to include raw upstream E-Control payloads in the response.- Only honored when debug is allowed (
NODE_ENV != productionorENABLE_DEBUG_MODE=1).
- Only honored when debug is allowed (