diff --git a/entrypoint.sh b/entrypoint.sh index 7fc22d9..2d654ec 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,6 +3,7 @@ sed -i "s|\${LENRA_SERVER_DOMAIN}|${LENRA_SERVER_DOMAIN}|g" /opt/bitnami/nginx/conf/server_blocks/nginx.conf sed -i "s|\${LENRA_SERVER_URL}|${LENRA_SERVER_URL}|g" index.html sed -i "s|\${SENTRY_CLIENT_DSN}|${SENTRY_CLIENT_DSN}|g" index.html +sed -i "s|\${ENVIRONMENT}|${ENVIRONMENT}|g" index.html sed -i "s|\${OAUTH_CLIENT_ID}|${OAUTH_CLIENT_ID}|g" index.html sed -i "s|\${OAUTH_BASE_URL}|${OAUTH_BASE_URL}|g" index.html sed -i "s|\${OAUTH_REDIRECT_URL}|${OAUTH_REDIRECT_URL}|g" index.html diff --git a/lib/main.dart b/lib/main.dart index 40f13be..a935284 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -34,8 +34,7 @@ void main() async { }); debugPrint("Starting main app[debugPrint]: ${Config.instance.application}"); - - const environment = String.fromEnvironment('ENVIRONMENT'); + String environment = Config.instance.environment; var reportMode = LenraReportMode(); CatcherOptions debugOptions = CatcherOptions(