Skip to content

ieduer/suen

Repository files navigation

EDC

20250309:GWF牆域名

| About Me |

Direct Pages Deploy

Use these helpers when a Git-connected Pages project is serving traffic but the normal project-detail / build path is unhealthy.

Requirements:

  • CLOUDFLARE_API_TOKEN
  • CLOUDFLARE_ACCOUNT_ID
  • npx, curl, jq

Generic static deploy:

./scripts/deploy_pages_static_direct.sh \
  --project-name <pages-project> \
  --directory <build-output-dir> \
  --branch main \
  --commit-hash "$(git rev-parse HEAD)" \
  --commit-message "$(git log -1 --pretty=%s)"

allinone deploy:

./scripts/deploy_allinone_direct.sh \
  --account-id "${CLOUDFLARE_ACCOUNT_ID}"

The allinone helper assembles the Pages output into a temporary directory, uploads static assets with wrangler pages project upload, then creates the deployment through the Pages API and waits for success.

About

個人導航

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors