github cloudflare/workers-sdk wrangler@4.51.0

one hour ago

Minor Changes

  • #11345 d524e55 Thanks @penalosa! - Enable experimental support for autoconfig-powered Astro projects

  • #11228 43903a3 Thanks @petebacondarwin! - Support CLOUDFLARE_ENV environment variable for selecting the active environment

    This change enables users to select the environment for commands such as CLOUDFLARE_ENV=prod wrangler versions upload. The --env command line argument takes precedence.

    The CLOUDFLARE_ENV environment variable is mostly used with the @cloudflare/vite-plugin to select the environment for building the Worker to be deployed. This build also generates a "redirected deploy config" that is flattened to only contain the active environment.
    To avoid accidentally deploying a version that is built for one environment to a different environment, there is an additional check to ensure that if the user specifies an environment in Wrangler it matches the original selected environment from the build.

Patch Changes

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.