diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh index 929e9c0b..4339e3f5 100755 --- a/deploy/entrypoint.sh +++ b/deploy/entrypoint.sh @@ -39,9 +39,9 @@ fi cd $APP/dist if [ ! -z "$STATIC_CDN_HOST" ]; then - find . -name index.html -exec sed -i "s/__STATIC_CDN_HOST__/\/\/$STATIC_CDN_HOST/g" {} \; + find . -name "*.*" -type f -exec sed -i "s/__STATIC_CDN_HOST__/\/$STATIC_CDN_HOST/g" {} \; else - find . -name index.html -exec sed -i "s/__STATIC_CDN_HOST__//g" {} \; + find . -name "*.*" -type f -exec sed -i "s/__STATIC_CDN_HOST__\///g" {} \; fi cd $APP