cobalt/web/static/runtime-config.js
Jonathan Chemla 782045dd82 Cobalt Web image Dockerfile
Build and run image with

```
docker build -f web/Dockerfile -t cobalt-web .
docker run -e WEB_DEFAULT_API="https://real.api.endpoint" -e WEB_HOST="http://abc"  -e WEB_PLAUSIBLE_HOST="def" -p 800:80 cobalt-web
```

Currently, vite build still uses process.env env-vars at build time, so the docker container is not using those defined via placeholders in `runtime-config.js`
2025-06-25 12:56:36 +02:00

5 lines
141 B
JavaScript

window.COBALT_CONFIG = {
WEB_HOST: "${WEB_HOST}",
WEB_PLAUSIBLE_HOST: "${WEB_PLAUSIBLE_HOST}",
WEB_DEFAULT_API: "${WEB_DEFAULT_API}"
};