From afc1d7d1e6a9174db5a105e920bbdb4a1d8b4c09 Mon Sep 17 00:00:00 2001 From: KeisukeYamashita <19yamashita15@gmail.com> Date: Sun, 8 Dec 2024 14:56:08 +0100 Subject: [PATCH] fix(web): use REEARTH prefix for frontend runtime environment variables Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com> --- web/docker/40-envsubst-on-reearth-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/docker/40-envsubst-on-reearth-config.sh b/web/docker/40-envsubst-on-reearth-config.sh index c66f6ac4c..73ca539de 100755 --- a/web/docker/40-envsubst-on-reearth-config.sh +++ b/web/docker/40-envsubst-on-reearth-config.sh @@ -24,7 +24,7 @@ _REEARTH_CONFIG_OUTPUT_FILE="/usr/share/nginx/html/reearth_config.json" # Wrap with "" if the value doesn't start with '{[' and end with ']}' (JSON) or "null". wrap_reearth_variables() { - for var in $(env | grep '^REEARTH_WEB' | cut -d= -f1); do + for var in $(env | grep '^REEARTH_' | cut -d= -f1); do value=$(printenv "$var") if [ -z "$value" ]; then eval "export $var='\"\"'"