From 0125e414d8d8eeaf40376354875fcb0da85eceec Mon Sep 17 00:00:00 2001 From: 1708-huayu <57060237+1708-huayu@users.noreply.github.com> Date: Thu, 11 Sep 2025 19:05:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=8F=91=E7=89=88=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/deploy.md | 7 +++++++ next.config.mjs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docker/deploy.md b/docker/deploy.md index 09e83a4..7beb1dd 100644 --- a/docker/deploy.md +++ b/docker/deploy.md @@ -36,6 +36,13 @@ scp -r cert/ root@121.36.71.28:/usr/local/software/nginx-1.28.0/ scp -r outd/ root@121.36.71.28:/usr/share/nginx/html +mv outd todo +cd todo/ +rm -rf outd/ +cd .. +mv outd/ todo/ +cd todo/ +cd outd/ cp -rf ./* ../ ``` \ No newline at end of file diff --git a/next.config.mjs b/next.config.mjs index a015e2b..3c914cc 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -5,7 +5,7 @@ const nextConfig = { cleanDistDir: true, basePath: isProduction ? "/todo" : '', // 静态文件前缀 - assetPrefix: isProduction ? "/todo" : '', + assetPrefix: isProduction ? "/todo/" : '', // Middleware cannot be used with "output: export". output: 'export', // Optional: Change links `/me` -> `/me/` and emit `/me.html` -> `/me/index.html`