From 1e631e2eee56485475763c9e956e775f16a3caa9 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc <1269158832@qq.com> Date: Mon, 12 Jul 2021 13:49:18 +0800 Subject: [PATCH] [Fix] CDN Problem --- deploy/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh index 627c75a5..af4c90f0 100755 --- a/deploy/entrypoint.sh +++ b/deploy/entrypoint.sh @@ -48,9 +48,9 @@ fi cd $APP/dist if [ ! -z "$STATIC_CDN_HOST" ]; then - find . -name "*.*" -type f -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 "*.*" -type f -exec sed -i "s/__STATIC_CDN_HOST__\///g" {} \; + find . -name "*.*" -type f -exec sed -i "s|__STATIC_CDN_HOST__\/||g" {} \; fi cd $APP