6 lines
339 B
JavaScript
6 lines
339 B
JavaScript
|
|
// Runtime config — Caddy's `templates` directive replaces {{env "API_BASE"}}
|
||
|
|
// with the API_BASE env var at request time (see Caddyfile). If unset (e.g. a
|
||
|
|
// plain `caddy file-server` without templates), it stays a literal and index.html
|
||
|
|
// falls back to the staging API. Never cached.
|
||
|
|
window.FLEETOPS_API_BASE = "{{env "API_BASE"}}";
|