diff --git a/.env.production b/.env.production index 24e6f58..1720734 100644 --- a/.env.production +++ b/.env.production @@ -1,16 +1,16 @@ # 测试 -# NEXT_PUBLIC_JAVA_URL = https://auth.test.movieflow.ai -# NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com -# NEXT_PUBLIC_CUT_URL = https://77.smartcut.py.qikongjian.com -# NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.net/api/auth/google/callback -# NEXT_PUBLIC_CUT_URL_TO = https://smartcut.huiying.video +NEXT_PUBLIC_JAVA_URL = https://auth.test.movieflow.ai +NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com +NEXT_PUBLIC_CUT_URL = https://77.smartcut.py.qikongjian.com +NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.net/api/auth/google/callback +NEXT_PUBLIC_CUT_URL_TO = https://smartcut.huiying.video # 生产 -NEXT_PUBLIC_JAVA_URL = https://auth.movieflow.ai -NEXT_PUBLIC_BASE_URL = https://api.video.movieflow.ai -NEXT_PUBLIC_CUT_URL = https://smartcut.api.movieflow.ai -NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.ai/api/auth/google/callback -NEXT_PUBLIC_CUT_URL_TO = https://smartcut.movieflow.ai +# NEXT_PUBLIC_JAVA_URL = https://auth.movieflow.ai +# NEXT_PUBLIC_BASE_URL = https://api.video.movieflow.ai +# NEXT_PUBLIC_CUT_URL = https://smartcut.api.movieflow.ai +# NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.ai/api/auth/google/callback +# NEXT_PUBLIC_CUT_URL_TO = https://smartcut.movieflow.ai # 通用 # 当前域名配置 NEXT_PUBLIC_FRONTEND_URL = https://www.movieflow.ai diff --git a/compile_dev.sh b/compile_dev.sh index 1dc7d07..22b2adc 100755 --- a/compile_dev.sh +++ b/compile_dev.sh @@ -38,9 +38,9 @@ if [ "$current_branch" = "$BRANCH_NAME" ]; then echo "On dev branch, building project..." | tee -a $LOGFILE PROFILE_ENV=$BRANCH_NAME - # 安装依赖并构建(通过 env-cmd 注入 .env.development 与 NODE_ENV) + # 安装依赖并构建 yarn install - npx --yes env-cmd -f .env.development bash -lc 'export NODE_ENV=development; yarn build' + yarn build # 准备dist目录 mkdir -p dist diff --git a/compile_prod.sh b/compile_prod.sh index 5cb6d9c..b0b23a1 100755 --- a/compile_prod.sh +++ b/compile_prod.sh @@ -38,9 +38,9 @@ if [ "$current_branch" = "$BRANCH_NAME" ]; then echo "On prod branch, building project..." | tee -a $LOGFILE PROFILE_ENV=$BRANCH_NAME - # 安装依赖并构建(通过 env-cmd 注入 .env.production 与 NODE_ENV) + # 安装依赖并构建 yarn install - npx --yes env-cmd -f .env.production bash -lc 'export NODE_ENV=production; yarn build' + yarn build # 准备dist目录 mkdir -p dist