github cloudflare/workers-sdk create-cloudflare@2.13.0

Minor Changes

  • #5080 2aa7913 Thanks @jculvey! - feature: Use new vite-cloudflare template in Remix projects.

    Remix has released a new official Cloudflare template that uses getPlatformProxy under the hood to provide better support for bindings in dev. Remix projects created with C3 will now use this new template.

    Along with this change, projects will use the default vite-based dev command from create-remix instead of using wrangler pages dev on build output.

    A new build-cf-types script has also been added to re-generate the Env type defined in load-context.ts based on the contents of wrangler.toml. A default wrangler.toml will be added to new Remix projects to accomodate this workflow.

  • #5072 cab7e1c Thanks @jculvey! - feature: Improve bindings support in Astro template.

    C3 will now create Astro projects configured to use miniflare in dev automatically. This is done by adding a configuration for the adapter of { runtime: 'local'} (see Astro docs for more details). A wrangler.toml file will also be added where bindings can be added to be used in dev.

    Along with this change, projects will now use the default vite-based astro dev command instead of using wrangler pages dev on build output.

    When Typescript is used, the src/env.d.ts file will be updated to add type definitions runtime.env which can be re-generated with a newly added build-cf-types script.

Patch Changes

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.