Files
LaDOSE/LaDOSE.Src/LaDOSE.WebApp/.env.example
T
2026-08-06 09:58:06 +02:00

17 lines
843 B
Bash

# Base URL of LaDOSE.Api. Defaults to http://localhost:5000 when unset,
# which matches the Kestrel binding the API uses in development.
#
# Read by `vite dev` and inlined at build time (`npm run build`, or the Dockerfile's
# `--build-arg VITE_API_BASE_URL=...`). Baking it is optional.
VITE_API_BASE_URL=http://localhost:5000
# Container runtime only, and the reason one image serves every environment:
# docker-entrypoint.sh turns this into /config.js on start, which app.html loads
# before the bundle. Not a Vite variable, so it does NOT belong in a .env file.
#
# podman run -e LADOSE_API_BASE_URL=https://api.ladose.net ladose-webapp
#
# Precedence: /config.js > baked VITE_API_BASE_URL > http://localhost:5000.
# Leave it unset and /config.js is `{}`, so the baked value stays in charge.
# LADOSE_API_BASE_URL=https://api.ladose.net