Skip to content

Commit 19d17ba

Browse files
ctrlplusbclaude
andauthored
fix(deploy): fix Vercel deployments by upgrading Node and adding config (#1011)
* fix(deploy): fix Vercel deployments by upgrading Node and adding config Vercel dropped Node 14 support, causing all Production and Preview deployments to fail. Upgrades website engine to Node 18 and adds vercel.json to explicitly configure the docs site build. Closes #1006 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(deploy): move vercel.json to website/ and use Node 24 Moves vercel.json into website/ so Vercel reads the website's package.json engines field instead of the root (which is for the library). Sets Node engine to 24.x per Vercel deployment logs. Requires setting Root Directory to "website/" in Vercel project settings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(deploy): add openssl-legacy-provider for Node 24 compatibility VuePress 1.x's cache-loader uses md4 hashing which OpenSSL 3.0 (bundled with Node 24) rejects. Adding --openssl-legacy-provider as suggested by Vercel's build logs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 378412c commit 19d17ba

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

website/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"private": true,
33
"engines": {
4-
"node": "14.x"
4+
"node": "24.x"
55
},
66
"scripts": {
77
"dev": "vuepress dev docs",
8-
"build": "vuepress build docs",
9-
"deploy": "vercel --prod"
8+
"build": "vuepress build docs"
109
},
1110
"devDependencies": {
1211
"@vuepress/plugin-google-analytics": "^1.9.9",

website/vercel.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"buildCommand": "NODE_OPTIONS=--openssl-legacy-provider yarn build",
3+
"outputDirectory": "docs/.vuepress/dist",
4+
"framework": null
5+
}

0 commit comments

Comments
 (0)