From 4e8cf9dcbb85f992e53e770382b6ba4947271719 Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Fri, 27 Feb 2026 13:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20run.sh:25-33=20?= =?UTF-8?q?=E7=9A=84=20prepare=5Fstandalone()=20=E5=87=BD=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E7=8E=B0=E5=9C=A8=E4=BC=9A=E5=A4=8D=E5=88=B6=E6=95=B4?= =?UTF-8?q?=E4=B8=AA=20.next=20=E7=9B=AE=E5=BD=95=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=88=B0=20standalone=20=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 9abed75..4107330 100644 --- a/run.sh +++ b/run.sh @@ -26,7 +26,8 @@ prepare_standalone() { if [ -f ".next/standalone/server.js" ]; then rm -rf .next/standalone/.next .next/standalone/public mkdir -p .next/standalone/.next - [ -d .next/static ] && cp -r .next/static .next/standalone/.next/ + # 复制完整的 .next 目录内容(standalone 服务器需要所有文件) + [ -d .next ] && cp -r .next/* .next/standalone/.next/ [ -d public ] && cp -r public .next/standalone/ fi }