Skip to content

SPA mode in Wrangler SDK not every calling Worker Handler #8798

@matthew-sessions

Description

@matthew-sessions

Which Cloudflare product(s) does this pertain to?

C3 (npm create cloudflare)

What versions & operating system are you using?

Wrangler 4.7 Node 20

Please provide a link to a minimal reproduction

efda570#diff-d440230b8105b8dee550032dd0c64939a6727564b8617dc8f77ae9af4cd982b2

Describe the Bug

Using the CLI to create a React APP for workers with Assets never invokes the Fetch Handler.

Steps to reproduce:

  1. Create a project by following docs: https://developers.cloudflare.com/workers/frameworks/framework-guides/react/
  2. Deploy
  3. Navigate to API path

Image

The Fetch handler to returns JSON is never invoked.

efda570#diff-d440230b8105b8dee550032dd0c64939a6727564b8617dc8f77ae9af4cd982b2

This behavior is contrary to the docs: https://developers.cloudflare.com/workers/frameworks/framework-guides/react/

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions