Skip to content

feat(website): support Cloudflare Worker PR previews - #120

Merged
chenjiahan merged 3 commits into
mainfrom
chenjiahan/website-pr-preview
Nov 11, 2026
Merged

chenjiahan merged 3 commits into
mainfrom
chenjiahan/website-pr-preview

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Workers Builds needs preview-specific Build Output before it can upload a branch preview. This PR marks non-main Workers Builds as preview builds and adds deploy:preview using cf previews deploy --prebuilt, while keeping the existing production build and deployment commands.

After merging, enable preview branch builds, set the Preview command to pnpm --filter ecosystem-ci-website deploy:preview, and configure build watch paths to skip routine data-only updates. No new GitHub workflow or repository secret is required. Dashboard settings have not been changed; the hosted Preview URL and PR comment still need verification after activation.

Validation with the Node.js version in .nvmrc:

WORKERS_CI=1 WORKERS_CI_BRANCH=chenjiahan/website-pr-preview pnpm build:website
WORKERS_CI=1 WORKERS_CI_BRANCH=main pnpm build:website
pnpm --filter ecosystem-ci-website exec cf deploy --prebuilt --dry-run
pnpm --filter ecosystem-ci-website exec tsc --noEmit
pnpm check

Confirmed isPreview: true / false respectively. The preview build served SSR HTML, CSS, and JS with HTTP 200 in local workerd, and the production deploy command rejected preview output.

Workers Builds preview configuration

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T06:14:17.050060Z 1fc9529 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chenjiahan
chenjiahan merged commit 2432dc0 into main Nov 11, 2026
39 of 42 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/website-pr-preview branch November 11, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant