From c4b8595c0101c52c8af97948522139c9f4b2c153 Mon Sep 17 00:00:00 2001 From: ZLY Date: Fri, 10 Oct 2025 09:51:38 +0800 Subject: [PATCH] =?UTF-8?q?build(config):=20=E6=8C=87=E5=AE=9A=E9=9D=99?= =?UTF-8?q?=E6=80=81=E5=AF=BC=E5=87=BA=E7=9A=84=E8=BE=93=E5=87=BA=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 next.config.js 中添加 distDir 配置项 - 将静态导出的输出目录指定为 dist 文件夹 - 确保构建产物输出到正确的目录结构中 --- next.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/next.config.js b/next.config.js index 75046fc..f7f9b3e 100644 --- a/next.config.js +++ b/next.config.js @@ -17,6 +17,7 @@ module.exports = withLess( withTM({ // 静态导出配置 output: 'export', + distDir: 'dist', // 指定输出目录为 dist 文件夹 lessLoaderOptions: { lessOptions: { modifyVars: {