[BUG]: LAGO_API_URL env is ignored
Author: terion-labsCreated Aug 28, 2025Updated Nov 5, 2025
Describe the bug I've deployed lago as part of my app using docker compose and dokploy. And can't even signup because of incorrect api url
To Reproduce deploy lago in docker with envs, validating that lago_front container has vars:
984109996c3c:/# printenv
API_URL=https://lago.mydomain.dev/api
HOSTNAME=984109996c3c
PWD=/
LAGO_FRONT_URL=https://lago.mydomain.dev
PKG_RELEASE=1
HOME=/root
DYNPKG_RELEASE=1
APP_ENV=production
NJS_VERSION=0.8.10
LAGO_OAUTH_PROXY_URL=https://proxy.getlago.com
TERM=xterm
LAGO_API_URL=https://lago.mydomain.dev/api
SHLVL=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
NGINX_VERSION=1.27.5
NJS_RELEASE=1
_=/bin/printenvgo to front, see contents of /env-config.js:
window.API_URL = "http://localhost:3000"
window.LAGO_DOMAIN = ""
window.APP_ENV = "production"
window.LAGO_OAUTH_PROXY_URL = "https://proxy.getlago.com"
window.LAGO_DISABLE_SIGNUP = ""
window.NANGO_PUBLIC_KEY = ""
window.SENTRY_DSN = ""
window.LAGO_DISABLE_PDF_GENERATION = ""Expected behavior window.API_URL is equal to env LAGO_API_URL
Support
- Version 1.33.1
Additional context Weirdly it
Source: getlago/lago