From 6f4102e32a6fc7334f065b25adba45e0b5b453b9 Mon Sep 17 00:00:00 2001 From: tanghui Date: Fri, 15 Dec 2023 16:43:45 +0800 Subject: [PATCH 1/2] fix: fix vercel --- now.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/now.json b/now.json index b73988b5..46a63876 100644 --- a/now.json +++ b/now.json @@ -5,10 +5,7 @@ { "src": "package.json", "use": "@now/static-build", - "config": { "distDir": ".doc" } + "config": { "distDir": "docs-dist" } } - ], - "routes": [ - { "src": "/(.*)", "dest": "/dist/$1" } ] } From 1e4d7efd9728de65b8821c5f0ce0aef82a97feda Mon Sep 17 00:00:00 2001 From: tanghui Date: Fri, 15 Dec 2023 16:57:24 +0800 Subject: [PATCH 2/2] fix path --- .dumirc.ts | 2 +- .gitignore | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dumirc.ts b/.dumirc.ts index 3983dd72..f9137735 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -8,7 +8,7 @@ export default defineConfig({ name: 'InputNumber', logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' }, - outputPath: '.doc', + outputPath: 'docs-dist', exportStatic: {}, styles: [`body .dumi-default-header-left { width: 230px; } body .dumi-default-hero-title { font-size: 100px; }`], }); diff --git a/.gitignore b/.gitignore index 3a0da955..a057a838 100755 --- a/.gitignore +++ b/.gitignore @@ -28,7 +28,7 @@ coverage yarn.lock pnpm-lock.yaml package-lock.json -.doc/ +docs-dist/ # umi .umi