Closed
Description
Which Cloudflare product(s) does this pertain to?
Vite Plugin
What versions are you using?
0.1.9 [@cloudflare/vite-plugin]
What operating system and version are you using?
Mac Sequoia 15.3.1
Please provide a link to a minimal reproduction
No response
Describe the Bug
Using the create cloudflare@latest --template react-swc-ts
and adding the following assets
config to the wrangler.jsonc
"assets": {
"not_found_handling": "single-page-application",
"binding": "ASSETS",
"run_worker_first": true
},
Then removing the following line from the worker
return Response.json({
message: "Hello world",
});
// return env.ASSETS.fetch(request);
You will find it still continues to serve the index.html rather than returning "Hello world"
Please provide any relevant error logs
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done