Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

This proof of concept module enables access to the Cloudflare runtime platform in the development server of [Nitro](https://nitro.unjs.io) and [Nuxt](https://nuxt.com) using the [new `getPlatformProxy` API](https://github.com/cloudflare/workers-sdk/pull/5002) exposed by [wrangler](https://developers.cloudflare.com/workers/wrangler/) and [miniflare](https://miniflare.dev/)

> [!NOTE]
> Nitro plans to introduce a new method to allow native dev presets, meaning you can natively run [miniflare](https://miniflare.dev/) as your development server without this module or a proxy in the future!
> [!IMPORTANT]
> As of Nitro version 2.12 or later, this module is no longer required. Please refer to the [documentation](https://nitro.build/deploy/providers/cloudflare#dev-preset) for more information.

## Usage

Expand Down
4 changes: 3 additions & 1 deletion examples/nitro/nitro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import nitroCloudflareBindings from "nitro-cloudflare-dev";

// https://nitro.unjs.io/config
export default defineNitroConfig({
modules: [nitroCloudflareBindings]
compatibilityDate: "latest",
// preset: "cloudflare-module",
modules: [nitroCloudflareBindings],
});
2 changes: 1 addition & 1 deletion examples/nuxt/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "latest",
modules: ["nitro-cloudflare-dev"],
compatibilityDate: "2024-10-10",
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"h3": "^1.15.1",
"jiti": "^2.4.2",
"miniflare": "^3.20250224.0",
"nitropack": "^2.11.2",
"nitropack": "^2.12.0",
"nuxt": "^3.15.4",
"prettier": "^3.5.3",
"typescript": "^5.8.2",
Expand Down
Loading
Loading