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`