Skip to content
Merged
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
28 changes: 15 additions & 13 deletions packages/cloudflare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,21 @@ You can use [`create-next-app`](https://nextjs.org/docs/pages/api-reference/cli/
bun add -D wrangler@latest @opennextjs/cloudflare
```

- add a `wrangler.toml` at the root of your project

```toml
#:schema node_modules/wrangler/config-schema.json
name = "<your-app-name>"
main = ".open-next/worker.js"

compatibility_date = "2024-09-23"
compatibility_flags = ["nodejs_compat"]

# Use the new Workers + Assets to host the static frontend files
assets = { directory = ".open-next/assets", binding = "ASSETS" }
```
- add a `wrangler.json` at the root of your project

```json
{
"$schema": "node_modules/wrangler/config-schema.json",
"main": ".open-next/worker.js",
"name": "<your-app-name>",
"compatibility_date": "2024-12-30",
"compatibility_flags": ["nodejs_compat"],
"assets": {
"directory": ".open-next/assets",
"binding": "ASSETS"
}
}
```

- add a `open-next.config.ts` at the root of your project:

Expand Down
Loading