This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user