Skip to content

Vite plugin not serving assets in SPA mode #9778

Closed
@farnoy

Description

@farnoy

What versions & operating system are you using?

wrangler 4.14.1 vite-plugin 1.7.5 node 22.14

Please provide a link to a minimal reproduction

No response

Describe the Bug

I'm trying to move from running wrangler and vite separately from my SPA + API app but with the new vite plugin, only the root path / or /index.html work, all other routes like /example get 404s from the dev server. This mode with run_worker_first=false and not_found_handling=single-page-application works when deployed to CF, it only affects the vite plugin

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't workingvite-pluginRelating to the `@cloudflare/vite-plugin` package

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions