From 0b40d1c9d2bbe812931e0d1769eded7a8a32fb68 Mon Sep 17 00:00:00 2001 From: ruan-cat <1219043956@qq.com> Date: Sat, 30 Nov 2024 10:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(monorepo-1):=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90vitepress=E7=9A=84=E9=85=8D=E7=BD=AE=EF=BC=9B?= =?UTF-8?q?=E9=85=8D=E7=BD=AEcache=E3=80=81temp=E3=80=81dist=E7=9A=84?= =?UTF-8?q?=E6=89=93=E5=8C=85=E7=9B=AE=E5=BD=95=E6=96=87=E4=BB=B6=E5=A4=B9?= =?UTF-8?q?=EF=BC=9B=E9=85=8D=E7=BD=AE=E6=89=93=E5=8C=85=E6=97=B6=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E6=96=87=E4=BB=B6=E5=A4=B9=E7=9B=AE=E5=BD=95=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/vercel-deploy-tool.ts | 3 +-- .../monorepo-1/src/configs/vitepress/.vitepress/config.mts | 3 ++- tests/monorepo-1/src/configs/vp-hope/config.ts | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.config/vercel-deploy-tool.ts b/.config/vercel-deploy-tool.ts index d90d1f9..1c63afd 100644 --- a/.config/vercel-deploy-tool.ts +++ b/.config/vercel-deploy-tool.ts @@ -26,8 +26,7 @@ export default { { type: "userCommands", targetCWD: "./tests/monorepo-1", - isCopyDist: false, - outputDirectory: "src/.vuepress/dist/**/*", + outputDirectory: "dist/**/*", url: ["monorepo-1.ruancat6312.top"], userCommands: ["pnpm -C=./tests/monorepo-1 build:docs"], }, diff --git a/tests/monorepo-1/src/configs/vitepress/.vitepress/config.mts b/tests/monorepo-1/src/configs/vitepress/.vitepress/config.mts index d5f2998..41295ce 100644 --- a/tests/monorepo-1/src/configs/vitepress/.vitepress/config.mts +++ b/tests/monorepo-1/src/configs/vitepress/.vitepress/config.mts @@ -8,7 +8,8 @@ export default defineConfig({ base: "/vitepress/", srcDir: "../../../docs", - outDir: "../../../.vercel/output/static/vitepress", + outDir: "../../../dist/vitepress", + cacheDir: "../../../.cache/vitepress", themeConfig: { i18nRouting: true, diff --git a/tests/monorepo-1/src/configs/vp-hope/config.ts b/tests/monorepo-1/src/configs/vp-hope/config.ts index 67333da..3ef8572 100644 --- a/tests/monorepo-1/src/configs/vp-hope/config.ts +++ b/tests/monorepo-1/src/configs/vp-hope/config.ts @@ -14,9 +14,8 @@ const currPath = "src/configs/vp-hope"; export default defineRuanCatVuepressConfig({ title: "monorepo-1-vp-hope主题", base: "/vp-hope/", - // dest: `${currPath}/dist`, - dest: `.vercel/output/static/vp-hope`, - cache: `${currPath}/.cache`, - temp: `${currPath}/.temp`, + dest: `dist/vp-hope`, + cache: `.cache/vp-hope`, + temp: `.temp/vp-hope`, public: `${currPath}/public`, });