Skip to content

Commit 870a648

Browse files
authored
Update src/content/docs/workers/runtime-apis/nodejs/index.mdx
1 parent 3e0f514 commit 870a648

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Unless otherwise specified, implementations of Node.js APIs in Workers are inten
4141

4242
## Node.js API Polyfills
4343

44-
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).
44+
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).
4545

4646
Adding polyfills maximizes compatibility with existing npm packages, while recognizing that not all APIs from Node.js make sense in the context of serverless functions.
4747

0 commit comments

Comments
 (0)