From 74a9e2ce3b00876e3741f2cc88034f51da183add Mon Sep 17 00:00:00 2001 From: sljeff Date: Fri, 30 Sep 2022 09:43:41 +0800 Subject: [PATCH] fix: env replacement --- deploy/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh index 667eb189..0dcf0de7 100644 --- a/deploy/entrypoint.sh +++ b/deploy/entrypoint.sh @@ -22,7 +22,7 @@ function apply_path { if [ -n "$configValue" ] && [ -n "$envValue" ]; then # replace all echo "Replace: ${configValue} with: ${envValue}" - find $nextFolder \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#$configValue#$envValue#g" + find $nextFolder \( -type d -wholename .next/cache -prune \) \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#$configValue#$envValue#g" fi done < $envFilename }