From f70e8e80c50c2894bbdbcfff46194b48c99c616a Mon Sep 17 00:00:00 2001 From: tanghui Date: Wed, 3 Jan 2024 10:22:21 +0800 Subject: [PATCH] chore: fix vercel --- .dumirc.ts | 1 - now.json | 5 +---- package.json | 5 +++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.dumirc.ts b/.dumirc.ts index 9c369dd..a760b9e 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -7,7 +7,6 @@ export default defineConfig({ name: 'rc-progress', logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', }, - outputPath: '.doc', exportStatic: {}, styles: [ ` diff --git a/now.json b/now.json index 79b71e2..7b242ae 100644 --- a/now.json +++ b/now.json @@ -5,10 +5,7 @@ { "src": "package.json", "use": "@now/static-build", - "config": { "distDir": ".doc" } + "config": { "distDir": "dist" } } - ], - "routes": [ - { "src": "/(.*)", "dest": "/dist/$1" } ] } diff --git a/package.json b/package.json index 855a91c..8ede5bc 100644 --- a/package.json +++ b/package.json @@ -26,10 +26,11 @@ "scripts": { "start": "dumi dev", "docs:build": "dumi build", - "docs:deploy": "gh-pages -d docs-dist", + "docs:deploy": "gh-pages -d dist", + "deploy": "npm run docs:build && npm run docs:deploy", "compile": "father build", "prepare": "dumi setup", - "gh-pages": "npm run build && father doc deploy", + "gh-pages": "npm run now-build && father doc deploy", "prepublishOnly": "npm run compile && np --yolo --no-publish", "lint": "eslint src/ --ext .ts,.tsx,.jsx,.js", "prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",