Skip to content

Commit de132a3

Browse files
committed
Using partial file in the relevant location.
1 parent 897c0d0 commit de132a3

File tree

1 file changed

+1
-4
lines changed
  • src/content/docs/workers/runtime-apis/nodejs

1 file changed

+1
-4
lines changed

src/content/docs/workers/runtime-apis/nodejs/index.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ You can view which APIs are supported using the [Node.js compatability matrix](h
2020

2121
To enable both built-in runtime APIs and polyfills for your Worker or Pages project, add the [`nodejs_compat`](/workers/configuration/compatibility-dates/#nodejs-compatibility-flag) [compatibility flag](/workers/configuration/compatibility-dates/#nodejs-compatibility-flag) to your `wrangler.toml`, and set your compatibility date to September 23rd, 2024 or later.
2222

23-
```toml title="wrangler.toml"
24-
compatibility_flags = [ "nodejs_compat" ]
25-
compatibility_date = "2024-09-23"
26-
```
23+
<Render file="nodejs-compat-wrangler-toml" product="workers" />
2724

2825
:::note
2926
As of September 23rd, 2024, the `nodejs_compat` compatibility flag enables the exact same behavior as the `nodejs_compat_v2` compatibility flag, as long as your compatibility date is set to September 23rd, 2024 or later.

0 commit comments

Comments
 (0)