Skip to content

Commit a9b878e

Browse files
committed
Callout nodejs_compat instructions more explicitly
1 parent 9cfb827 commit a9b878e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pages/cloudflare/get-started.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ Then, add a [`wrangler.toml`](https://developers.cloudflare.com/workers/wrangler
2727

2828
```toml
2929
name = "my-app"
30-
compatibility_date = "2024-07-29"
30+
compatibility_date = "2024-09-23"
3131
compatibility_flags = ["nodejs_compat"]
3232
assets = { directory = "public"}
3333
```
3434

35+
<Callout>
36+
As shown above, you must enable the [`nodejs_compat` compatibility flag](https://developers.cloudflare.com/workers/runtime-apis/nodejs/) *and* set your [compatibility date](https://developers.cloudflare.com/workers/configuration/compatibility-dates/) to `2024-09-23` or later, in order for your Next.js app to work with @opennextjs/cloudflare.
37+
</Callout>
38+
3539
`wrangler.toml` is where you configure your Worker and define what resources it can access via [bindings](/workers/runtime-apis/bindings/).
3640

3741
##### 3. Update `next.config.mjs`

0 commit comments

Comments
 (0)