fix: use wrangler@3.114.0 local install

This commit is contained in:
wfz
2026-05-07 11:35:42 +08:00
parent 67bd9af7c7
commit ded440f6bc

4
Jenkinsfile vendored
View File

@@ -9,7 +9,7 @@ pipeline {
stage('Install') {
steps {
echo 'Installing dependencies...'
sh 'npm ci'
sh 'npm ci && npm install wrangler@3.114.0'
}
}
@@ -23,7 +23,7 @@ pipeline {
stage('Deploy') {
steps {
echo 'Deploying to Cloudflare Pages...'
sh 'rm -f wrangler.toml && npx wrangler pages deploy docs/.vitepress/dist --project-name=web-home'
sh 'rm -f wrangler.toml && ./node_modules/.bin/wrangler pages deploy docs/.vitepress/dist --project-name=web-home'
}
}
}