fix(frontend): dynamic ws endpoint

This commit is contained in:
leandrofars 2024-04-09 01:07:11 -03:00
parent 363668d726
commit 41a088998c

View File

@ -10,7 +10,7 @@ function apply_path {
test -n "$NEXT_PUBLIC_WS_ENPOINT" 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#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 apply_path