Skip to content

Commit c75a387

Browse files
BunsDevclaude
andcommitted
docs: add Vercel deploy config
Vercel build uses npm rather than the pnpm comux uses, because Vercel's bundled pnpm hits ERR_INVALID_THIS on Node 22+ and the packageManager field alone doesn't trigger corepack on first install (no lockfile committed). npm install --ignore-scripts runs cleanly in ~28s. packageManager pinned for local pnpm consistency; install/build commands in vercel.json drive the actual deploy. Currently deployed at https://docs-0xbuns.vercel.app (0xBuns scope on Vercel; buns-projects scope is at the 200-project Hobby cap). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8eb57d9 commit c75a387

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"private": true,
55
"type": "module",
6+
"packageManager": "pnpm@9.15.4",
67
"scripts": {
78
"dev": "vite dev",
89
"build": "vite build && rm -rf client && cp -R src/dist/client client",

docs/vercel.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"buildCommand": "npm run build",
3+
"outputDirectory": "client",
4+
"installCommand": "npm install --ignore-scripts",
5+
"rewrites": [
6+
{
7+
"source": "/(.*)",
8+
"destination": "/index.html"
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)