From 3854d220adfb66548ec556304045627830e4b023 Mon Sep 17 00:00:00 2001 From: moux1024 <403053463@qq.com> Date: Mon, 29 Sep 2025 16:33:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0:=20=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 20 ++++++++++---------- compile_dev.sh | 4 ++-- compile_prod.sh | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.env.production b/.env.production index 1720734..24e6f58 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 22b2adc..9105acd 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 - # 安装依赖并构建 + # 安装依赖并构建(以生产模式构建,但注入开发环境变量) yarn install - yarn build + NODE_ENV=production npx --yes env-cmd -f .env.development yarn build # 准备dist目录 mkdir -p dist diff --git a/compile_prod.sh b/compile_prod.sh index b0b23a1..0b5e93b 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 - # 安装依赖并构建 + # 安装依赖并构建(以生产模式构建并注入生产环境变量) yarn install - yarn build + NODE_ENV=production npx --yes env-cmd -f .env.production yarn build # 准备dist目录 mkdir -p dist