Skip to content

The first void deploy --platform cloudflare fails in apps without void.config.ts #957

Done

Description

@hyfdev

Running void deploy --platform cloudflare in a new TanStack Start, React Router or vinext app, or in a Void app created without void init, fails while Vite loads its config:

Error: Found `wrangler.jsonc` but no `cloudflare.config.ts`. The Cloudflare Vite plugin no longer reads Wrangler configuration files, so this configuration would be ignored. Run `npx cf migrate --bundler vite` to generate `cloudflare.config.ts`.

To reproduce, set up a new React Router app as in the React Router guide and run void deploy --platform cloudflare.

Without a void.config.ts, deploy writes the Worker name and account to a root wrangler.jsonc, which the v2 Cloudflare Vite plugin rejects.

This has failed since Void 1.5.0, and running void connect --platform cloudflare first avoids it.

#954 fixes it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions