diff --git a/replace-env-vars.sh b/replace-env-vars.sh index fe7acc698..6518fcc9e 100644 --- a/replace-env-vars.sh +++ b/replace-env-vars.sh @@ -11,7 +11,4 @@ fi # Only peform action if $FROM and $TO are different. echo "Replacing all statically built instances of $FROM with this string $TO ." -find apps/app/.next -type f | -while read file; do - sed -i "s|$FROM|$TO|g" "$file" -done \ No newline at end of file +grep -R -la "${FROM}" apps/app/.next | xargs -I{} sed -i "s|$FROM|$TO|g" "{}"