github cloudflare/workers-sdk @cloudflare/autoconfig@0.15.0

Minor Changes

  • #17246 d28fede Thanks @edmundhung! - Set up Hono projects for cf

    Previously, autoconfig refused every Hono project on cf. It now sets them up to build with Vite and the Cloudflare plugin, as in Hono's Workers + Vite starter: it adds Vite when the project doesn't use it, replaces Hono's own Vite dev server and build plugins, and uses the app's entry file as the Worker entry point. An entry file that doesn't export the app, such as one that starts a Node.js server, and HonoX projects are refused with a message. The Wrangler target is unchanged.

  • #17280 0fc70f2 Thanks @edmundhung! - Build Hugo sites on cf

    cf now recognises Hugo sites, runs hugo, and deploys the folder it builds: public, or the publishDir that Hugo's config sets. Before, cf deployed whatever was already in public without building the site. The deploy script spells out both steps, hugo && cf deploy public, so you can see and change them.

  • #17247 8803621 Thanks @edmundhung! - Set up static sites for cf without Wrangler

    On cf, static setup no longer installs Wrangler or writes wrangler.config.ts, and it writes the deploy script as cf deploy <directory>, so cf can build and deploy the site itself. It asks before creating cloudflare.config.ts, which is the only place the Worker name is saved. A framework autoconfig doesn't list is refused on cf, with a pointer to cf deploy <directory>.

  • #17238 8ffd9b3 Thanks @edmundhung! - Report the project's Wrangler config in getDetailsForAutoConfig

    The details now include wranglerConfig: the one the caller passes, or else the file named by the new wranglerConfigPath option, or else the one in the project folder. The wranglerConfig option also accepts a config as written in its file.

  • #17238 8ffd9b3 Thanks @edmundhung! - Report the build tool in the setup summary for cf

    runAutoConfig now returns the build tool the framework set up as buildTool, for example vite for Astro.

  • #17266 b9bb1b0 Thanks @dependabot! - Support Analog 3 in wrangler setup

    Configure Analog’s standalone Nitro Vite plugin for Cloudflare Workers. Both wrangler setup and create-cloudflare configure the Minimal starter as a static site. Analog 2 projects continue to use the Nitro options on the Analog Vite plugin. Projects using native Nitro 3 (nitro/vite) should use Nitro’s generated Wrangler configuration instead.

  • #17288 bc09bb3 Thanks @petebacondarwin! - Support Next.js static exports in cf autoconfig for projects that would otherwise use OpenNext. Build with Next.js and deploy the exported directory as static assets without setting up OpenNext or vinext. Existing vinext and Wrangler projects keep their current setup paths.

  • #17278 960292a Thanks @petebacondarwin! - Reject OpenNext setup for the cf target before modifying the project

    OpenNext builds a Worker but does not produce cf Build Output v1. Report this incompatibility during read-only detection and direct users to Wrangler with OpenNext. Expose assertCfBuildSupported for callers to enforce this check before setup or build. Already-configured Next.js projects can opt in with a cf:build package script that produces Build Output v1.

Patch Changes

  • #17238 8ffd9b3 Thanks @edmundhung! - Detect Pages projects for cf from their Wrangler config

    For cf, detection only checked pages_build_output_dir in a Wrangler config passed by the caller, so a Pages project was set up as a new Worker. Detection now also checks the project's own Wrangler config, and setup stops as it does for other Pages projects.

  • #17238 8ffd9b3 Thanks @edmundhung! - Keep a project's own Worker files when setting it up

    React Router setup no longer writes workers/app.ts and app/entry.server.tsx or reinstalls isbot when the project's Wrangler config already names a Worker entry. Setup for cf also keeps an existing cloudflare.config.ts.

  • #17299 2a10aff Thanks @edmundhung! - Use the Wrangler config's Worker name in detected project settings

    When a project has a Wrangler config with a name, getDetailsForAutoConfig now reports that name exactly as written, and the prompt to change it accepts it unchanged. Before, the detected settings showed the package.json name. WRANGLER_CI_OVERRIDE_NAME still takes precedence, and the package.json name and then the folder name are still used when the Wrangler config has no name.

  • #17284 5b6e6bf Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-29

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #17245 13126e0 Thanks @petebacondarwin! - Configure Vite projects that omit the plugins array

    Autoconfiguration now adds the Cloudflare plugin to supported Vite configs without a plugins property. If the config cannot be rewritten safely, setup stops before installing dependencies or changing project files.

  • #17238 8ffd9b3 Thanks @edmundhung! - Only ask about a Wrangler assets directory that Vite won't deploy

    Migrating to the Vite bundler always left a required TODO for assets.directory, although Vite deploys its build output and public folder. The TODO now only appears for another folder, and says how to make Vite deploy it.

  • Updated dependencies [7d57524, 97bb683, 5b6e6bf, 7d57524, fd54492, 97bb683, a332568, 2a10aff]:

    • @cloudflare/workers-utils@0.60.0
    • @cloudflare/config@1.0.0-rc.6
    • @cloudflare/cli-shared-helpers@0.4.1

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.