Skip to content

Commit

Permalink
Revert "Using partial file in the relevant location."
Browse files Browse the repository at this point in the history
This reverts commit de132a3.
  • Loading branch information
Oxyjun committed Oct 11, 2024
1 parent de132a3 commit adde1a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/content/docs/workers/runtime-apis/nodejs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ You can view which APIs are supported using the [Node.js compatability matrix](h

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.

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

:::note
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.
Expand Down

0 comments on commit adde1a6

Please sign in to comment.