From 20dc6bd086e001d53b01b76ea10e4773996b5c76 Mon Sep 17 00:00:00 2001 From: coolxitech Date: Sat, 13 Dec 2025 13:57:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(server):=20=E6=9B=B4=E6=96=B0=E9=9D=99?= =?UTF-8?q?=E6=80=81=E8=B5=84=E6=BA=90=E7=9B=AE=E5=BD=95=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将静态资源目录从 'dist' 更改为 'docs' - 确保服务器能正确指向新的构建输出目录 - 适配 Vue 项目文档部署需求 --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 1d015a4..968eceb 100644 --- a/server.js +++ b/server.js @@ -6,8 +6,8 @@ const app = express(); const HOST = '0.0.0.0'; app.set('trust proxy', true); -// 指向 Vue 构建后的 dist 目录 -app.use(express.static(path.join(process.cwd(), 'dist'))); +// 指向 Vue 构建后的 docs 目录 +app.use(express.static(path.join(process.cwd(), 'docs'))); const getLocalIp = () => { const interfaces = os.networkInterfaces();