Skip to content

Commit 8bded97

Browse files
author
Taois
committed
feat: 尝试修复vercel构建
1 parent 7cafdd1 commit 8bded97

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

dashboard/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

dashboard/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"private": true,
44
"version": "1.0.0",
55
"type": "module",
6-
"main": "./production-server.cjs",
7-
"bin": "./production-server.cjs",
86
"scripts": {
97
"dev": "vite",
108
"build": "vite build",
@@ -18,6 +16,13 @@
1816
"mock1": "json-server src/mock/data.json --host 127.0.0.1 --port 9978 --middlewares src/mock/middlewares.js",
1917
"mock2": "json-server public/mock/data.json --host 127.0.0.1 --port 9978 --middlewares public/mock/middlewares.js"
2018
},
19+
"engines": {
20+
"node": ">17 <23"
21+
},
22+
"repository": "https://github.com/hjdhnx/DrPlayer.git",
23+
"author": "晚风拂柳颜 <434857005@qq.com>",
24+
"description": "道长修仙,法力无边。一统江湖,只需半年。\n君子袒蛋蛋,小人藏鸡鸡。",
25+
"license": "MIT",
2126
"dependencies": {
2227
"@fastify/static": "^6.12.0",
2328
"artplayer": "^5.3.0",

dashboard/pnpm-workspace.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
ignoredBuiltDependencies:
2-
- '@tailwindcss/oxide'
3-
- esbuild
4-
- vue-demi
1+
# pnpm workspace configuration
2+
packages:
3+
- '.'

dashboard/vercel.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2+
"buildCommand": "pnpm build",
3+
"outputDirectory": "dist",
4+
"installCommand": "pnpm install --frozen-lockfile",
5+
"framework": "vite",
26
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
37
}

0 commit comments

Comments
 (0)