Skip to content

Commit 3e0f514

Browse files
ToriLindsayvicb
andauthored
Update src/content/docs/workers/configuration/compatibility-flags.mdx
Co-authored-by: Victor Berchet <[email protected]>
1 parent 232ad25 commit 3e0f514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/workers/configuration/compatibility-flags.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Compatibility flags can be set when uploading a Worker using the [Workers Script
4848
:::note
4949
[The `nodejs_compat` flag](/workers/runtime-apis/nodejs/) also enables `nodejs_compat_v2` as long as your compatibility date is 2024-09-23 or later. The v2 flag improves runtime Node.js compatibility by bundling additional polyfills and globals into your Worker. However, this improvement increases bundle size.
5050

51-
If your compatibility date is before 2024-09-23 and you want to enable v2, add the `nodejs_compat_v2` in addition to the `nodejs_compat` flag.
51+
If your compatibility date is 2024-09-22 or before and you want to enable v2, add the `nodejs_compat_v2` in addition to the `nodejs_compat` flag.
5252
If your compatibility date is after 2024-09-23, but you want to disable v2 to avoid increasing your bundle size, add the `no_nodejs_compat_v2` in addition to the `nodejs_compat flag`.
5353
:::
5454

0 commit comments

Comments
 (0)