Skip to content

Commit adde1a6

Browse files
committed
Revert "Using partial file in the relevant location."
This reverts commit de132a3.
1 parent de132a3 commit adde1a6

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ 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-
<Render file="nodejs-compat-wrangler-toml" product="workers" />
23+
```toml title="wrangler.toml"
24+
compatibility_flags = [ "nodejs_compat" ]
25+
compatibility_date = "2024-09-23"
26+
```
2427

2528
:::note
2629
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)