fix(admin-ui): SSR sees ERROR_REPORTING_ADMIN_API_BASE at runtime

Next build inlines bare process.env.* as undefined without .env at build time.
Use Reflect.get for admin API base and demo flag; add .env.production default for LXC.
This commit is contained in:
1sonhador committed 2026-03-29 21:20:19 +01:00
1 parent 0a8918ed00
commit c899cef6e1
3 files changed
+12 -2

No files matched your search

+2
View File
@@ -1,4 +1,6 @@
# URL base da API para dados no servidor (SSR). Sem trailing slash.
# Em produção o ficheiro `.env.production` no mesmo directório define o default para o build;
# systemd pode também exportar a mesma variável em runtime.
# ERROR_REPORTING_ADMIN_API_BASE=http://127.0.0.1:3200
# Origem opcional para pedidos de login no browser; por omissão usa o hostname actual.