Skip to content

WC-6008 [wrangler] previews: return proper error for --json - #15702

Merged
podonnell-dev merged 1 commit into
mainfrom
podonnell/previews-onboarding-json-error
Sep 18, 2026
Merged

podonnell-dev merged 1 commit into
mainfrom
podonnell/previews-onboarding-json-error

Conversation

@podonnell-dev

@podonnell-dev podonnell-dev commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Fixes WC-6008.

If previews block is missing, we output some suggested config when a user runs npx wrangler preview. With --json Wrangler now returns that suggestion as structured JSON on stdout


A picture of a cute animal (not mandatory, but encouraged)


Devin Review

@changeset-bot

changeset-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7bd7c75

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Minor
@cloudflare/vite-plugin Patch
@cloudflare/vitest-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Sep 17, 2026
@workers-devprod
workers-devprod requested review from a team and NuroDev and removed request for a team September 17, 2026 17:58
@workers-devprod

workers-devprod commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@ask-bonk

ask-bonk Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

devin-ai-integration[bot]

This comment was marked as resolved.

@pkg-pr-new

pkg-pr-new Bot commented Sep 17, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15702

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15702

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@15702

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15702

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@15702

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@15702

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@15702

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@15702

miniflare

npm i https://pkg.pr.new/miniflare@15702

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15702

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@15702

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@15702

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@15702

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@15702

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15702

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@15702

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@15702

wrangler

npm i https://pkg.pr.new/wrangler@15702

commit: 7bd7c75

@podonnell-dev
podonnell-dev force-pushed the podonnell/previews-onboarding-json-error branch from fcd993b to 30a7a30 Compare September 17, 2026 20:31
devin-ai-integration[bot]

This comment was marked as resolved.

@podonnell-dev
podonnell-dev force-pushed the podonnell/previews-onboarding-json-error branch from 30a7a30 to 7d3d68c Compare September 18, 2026 01:03

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Sep 18, 2026
@podonnell-dev
podonnell-dev force-pushed the podonnell/previews-onboarding-json-error branch from 7d3d68c to 7bd7c75 Compare September 18, 2026 16:33
@podonnell-dev
podonnell-dev enabled auto-merge (squash) September 18, 2026 16:44
devin-ai-integration[bot]

This comment was marked as resolved.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

Devin Review

Comment thread .changeset/quiet-previews-report.md
@podonnell-dev
podonnell-dev merged commit 8235e6a into main Sep 18, 2026
66 checks passed
@podonnell-dev
podonnell-dev deleted the podonnell/previews-onboarding-json-error branch September 18, 2026 17:00
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants