Your Wrangler configuration is missing a `previews` block to run this command

Open
#5,203 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cloud

Research direction

Start by tracing how Nitro generates the Wrangler configuration for Cloudflare Workers and look for where preview settings are added. Reproduce the reported deployment through the Cloudflare GitHub integration and check which configuration field is missing. Done when the generated configuration supports the reported command; the issue names no files or tests to run.

Written by the indexing model from the issue text.

Description

pending triage
Environment

Cloudflare Worker

Reproduction

None

Describe the bug

I use the Cloudflare Github integration to deploy my app to a Cloudflare worker.
After deploy, I get this error:

Your Wrangler configuration is missing a previews block to run this command.

I'm not sure I understand exactly, but Claude tells me that nitro hasn't caught up to this new Cloudflare requirement.

Additional context

No response

Logs

Dominant language
TypeScript
Stars
11.5k
Forks
968
Avg merge
4d 9h
Merged PRs (30d)
64

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nitrojs/nitro

All issues in nitrojs/nitro

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.