14 lines
274 B
Bash
14 lines
274 B
Bash
#!/bin/sh
|
|
|
|
ROOT_DIR=/app/dist
|
|
|
|
echo "Replacing env constants in JS"
|
|
for file in $ROOT_DIR/js/app.*.js* $ROOT_DIR/index.html $ROOT_DIR/precache-manifest*.js;
|
|
do
|
|
echo "Processing $file ...";
|
|
|
|
sed -i 's|VITE_CONJUREOS_HOST|'${VITE_CONJUREOS_HOST}'|g' $file
|
|
|
|
done
|
|
|
|
exec "$@" |