chore: speedup replace-env-vars.sh (#1146)
This commit is contained in:
parent
8252b1ccde
commit
1afb3ba4d2
1 changed files with 1 additions and 4 deletions
|
|
@ -11,7 +11,4 @@ fi
|
||||||
# Only peform action if $FROM and $TO are different.
|
# Only peform action if $FROM and $TO are different.
|
||||||
echo "Replacing all statically built instances of $FROM with this string $TO ."
|
echo "Replacing all statically built instances of $FROM with this string $TO ."
|
||||||
|
|
||||||
find apps/app/.next -type f |
|
grep -R -la "${FROM}" apps/app/.next | xargs -I{} sed -i "s|$FROM|$TO|g" "{}"
|
||||||
while read file; do
|
|
||||||
sed -i "s|$FROM|$TO|g" "$file"
|
|
||||||
done
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue