chore: speedup replace-env-vars.sh (#1146)

This commit is contained in:
Eli 2023-05-27 23:34:54 -05:00 committed by GitHub
parent 8252b1ccde
commit 1afb3ba4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
grep -R -la "${FROM}" apps/app/.next | xargs -I{} sed -i "s|$FROM|$TO|g" "{}"