Skip to content

fix: previews block so branch builds deploy - #12

Merged
dorelljames merged 2 commits into
mainfrom
fix/workers-previews
Oct 28, 2026
Merged

dorelljames merged 2 commits into
mainfrom
fix/workers-previews

Conversation

@dorelljames

Copy link
Copy Markdown
Member

Branch builds on Workers Builds failed with: "Your Wrangler configuration is missing a previews block". The non-production command is npx wrangler preview.

  • Adds "previews": {} to apps/website/wrangler.jsonc. Previews reuse the top-level assets and compatibility settings, and production wrangler deploy (with the www Custom Domain) is unchanged. wrangler deploy --dry-run passes.
  • CONTRIBUTING now names the preview command the builds actually run.

Once this merges, PR branches (including #10 and #11, after they're updated from main) get working preview builds.

Workers Builds runs `npx wrangler preview` for non-production branches, and wrangler refuses without a `previews` block. An empty block is enough: previews reuse the top-level assets and compatibility settings, and production deploys are unchanged.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T05:47:37.800014Z 1ff83ce PR opened
ℹ️ 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.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-workers-previews-jscebu-org.dorelljames.workers.dev (commit 377c8f5)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c1e7980b-jscebu-org.dorelljames.workers.dev 377c8f5 2026-10-28T05:49:14.679Z Visit the dashboard ↗
  • Build: Failed ❌

View logs ↗
1ff83ce 2026-10-28T05:47:10.521Z View logs ↗

Branch builds failed because apps/website/dist did not exist when wrangler ran: the dashboard build step wasn't producing it. wrangler.jsonc now has a build.command (install, build, post-build checks), so every deploy and preview builds itself regardless of dashboard settings. Verified locally from a deleted dist/ with wrangler preview.
@dorelljames
dorelljames merged commit 1ba0371 into main Oct 28, 2026
2 checks passed
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