From 41a088998c6b14a76c656f21d8a647d23086ad3c Mon Sep 17 00:00:00 2001 From: leandrofars Date: Tue, 9 Apr 2024 01:07:11 -0300 Subject: [PATCH] fix(frontend): dynamic ws endpoint --- frontend/build/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/build/entrypoint.sh b/frontend/build/entrypoint.sh index 74c569d..f4abca7 100644 --- a/frontend/build/entrypoint.sh +++ b/frontend/build/entrypoint.sh @@ -10,7 +10,7 @@ function apply_path { test -n "$NEXT_PUBLIC_WS_ENPOINT" find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#REST_API_URL#$NEXT_PUBLIC_REST_ENPOINT#g" - find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#WS_URL#$ENVIROMENT_VAR#g" + find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#WS_URL#$NEXT_PUBLIC_WS_ENPOINT#g" } apply_path