Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added no_nodejs_compat_v2 to notes #18765

Merged
merged 8 commits into from
Feb 5, 2025
Prev Previous commit
Next Next commit
Update src/content/docs/workers/runtime-apis/nodejs/index.mdx
ToriLindsay authored Jan 30, 2025
commit bd513a28b762619dd95c369e7e6e72861f8ef5e8
2 changes: 1 addition & 1 deletion src/content/docs/workers/runtime-apis/nodejs/index.mdx
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ You can view which APIs are supported using the [Node.js compatability matrix](h

## Get Started

To enable built-in Node.js APIs and add polyfills, you need to add the `nodejs_compat` compatibility flag to your `wrangler.toml`. This also enables `nodejs_compat_v2` as long as your compatibility date is 2024-09-23 or later. [Learn more about the Node.js compatibility flag and v2](/workers/configuration/compatibility-flags/#nodejs-compatibility-flag).
To enable built-in Node.js APIs and add polyfills, you need to add the `nodejs_compat` compatibility flag to your wrangler configuration. This also enables `nodejs_compat_v2` as long as your compatibility date is 2024-09-23 or later. [Learn more about the Node.js compatibility flag and v2](/workers/configuration/compatibility-flags/#nodejs-compatibility-flag).

import { WranglerConfig } from "~/components";