Skip to content

[migrate] replace Vercel with CloudFlare workers to deploy - #12

Merged
TechQuery merged 3 commits into
mainfrom
copilot/migrate-goodactionhub-to-cloudflare-workers
Aug 5, 2026
Merged

[migrate] replace Vercel with CloudFlare workers to deploy#12
TechQuery merged 3 commits into
mainfrom
copilot/migrate-goodactionhub-to-cloudflare-workers

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

PR-12 PR-12 PR-12 Powered by Pull Request Badge

Replaces the Vercel deployment pipeline with CloudFlare Workers using @opennextjs/cloudflare, mirroring the approach from idea2app/MobX-RESTful-Shadcn#16.

New files

  • open-next.config.ts — minimal CloudFlare adapter config via defineCloudflareConfig()
  • wrangler.jsonc — worker name, compatibility flags (nodejs_compat), .open-next/worker.js entry, and assets binding

package.json

  • Added @opennextjs/cloudflare (dep) and wrangler (devDep)
  • Added scripts: preview, deploy, cf-typegen

.gitignore

  • Added /.open-next/, .wrangler/, cloudflare-env.d.ts

pnpm-workspace.yaml

  • Added esbuild and workerd to allowBuilds

CI workflow (deploy.yml)

  • Removes Vercel action entirely; replaces with install + pnpm run deploy on default branch
  • Preview branches: runs opennextjs-cloudflare build + wrangler versions upload with a sanitized branch slug as preview alias, then posts a summary comment to the associated PR

Human changes

  1. [optimize] update Upstream packages
  2. [fix] 3 detail bugs

Copilot AI linked an issue Aug 4, 2026 that may be closed by this pull request
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate GoodActionHub.org to CloudFlare workers Migrate deployment from Vercel to CloudFlare Workers Aug 4, 2026
Copilot AI requested a review from TechQuery August 4, 2026 22:12
@TechQuery TechQuery added the enhancement Some improvements label Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Cloudflare Preview Deployment

  • Branch: copilot/migrate-goodactionhub-to-cloudflare-workers
  • Commit: 456fc4c
  • Preview Alias: b-copilot-migrate-goodactionhub-to-cloudfl

Wrangler Output

⛅️ wrangler 4.118.0
────────────────────

@TechQuery TechQuery changed the title Migrate deployment from Vercel to CloudFlare Workers [migrate] replace Vercel with CloudFlare workers to deploy Aug 5, 2026
@TechQuery
TechQuery marked this pull request as ready for review August 5, 2026 00:03
@TechQuery
TechQuery merged commit 2854610 into main Aug 5, 2026
3 checks passed
@TechQuery
TechQuery deleted the copilot/migrate-goodactionhub-to-cloudflare-workers branch August 5, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Some improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

迁移 GoodActionHub.org 至 CloudFlare workers

2 participants