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:
1 parent
0a8918ed00
commit
c899cef6e1
3 files changed
+12
-2
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user