megachangelog
Feature

Workers - Import SQL files as additional modules by default

SQL files can now be automatically imported as JavaScript strings in Worker code via Wrangler or Cloudflare Vite plugin, eliminating the need for custom configuration when using Drizzle or importing migrations in Durable Objects.

The .sql file extension is now automatically configured to be importable in your Worker code when using Wrangler or the Cloudflare Vite plugin. This is particular useful for importing migrations in Durable Objects and means you no longer need to configure custom rules when using Drizzle ↗.

SQL files are imported as JavaScript strings:

// `example` will be a JavaScript string
import example from "./example.sql";
workersmodulessqldurable-objects

Source: original entry ↗

More from Cloudflare

Follow Cloudflare to get its new changes in your feed and email digest.

Fix2026.8.2115.0

Cloudflare One Client for Linux

A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.

linuxclientcertificateshotfix
See all Cloudflare changes →