simplified: use npx wrangler

This commit is contained in:
wfz
2026-05-07 11:41:49 +08:00
parent 14f2181e91
commit be074b7726

11
Jenkinsfile vendored
View File

@@ -16,16 +16,9 @@ pipeline {
stage('Deploy') {
steps {
echo 'Deploying to Cloudflare Pages via wrangler...'
echo 'Deploying to Cloudflare Pages...'
sh '''
rm -f wrangler.toml
cat > wrangler.toml << EOF
name = "web-home"
account_id = "$CF_ACCOUNT_ID"
pages_project = "web-home"
compatibility_date = "2024-01-01"
EOF
wrangler pages deploy docs/.vitepress/dist
npx wrangler pages deploy docs/.vitepress/dist --project-name=web-home
'''
}
}