diff --git a/src/content/docs/browser-rendering/playwright/playwright-mcp.mdx b/src/content/docs/browser-rendering/playwright/playwright-mcp.mdx index bbb2afdf81..ce99d60a72 100644 --- a/src/content/docs/browser-rendering/playwright/playwright-mcp.mdx +++ b/src/content/docs/browser-rendering/playwright/playwright-mcp.mdx @@ -50,12 +50,16 @@ Follow these steps to deploy `@cloudflare/playwright-mcp`: 2. Make sure you have the [browser rendering](/browser-rendering/) and [durable object](/durable-objects/) bindings and [migrations](/durable-objects/reference/durable-objects-migrations/) in your wrangler configuration file. +:::note +Your Worker configuration must include the `nodejs_compat` compatibility flag and a `compatibility_date` of 2025-09-15 or later. +::: + ```toml name = "playwright-mcp-example" main = "src/index.ts" -compatibility_date = "2025-03-10" +compatibility_date = "2025-09-17" compatibility_flags = ["nodejs_compat"] [browser] diff --git a/src/content/docs/browser-rendering/stagehand.mdx b/src/content/docs/browser-rendering/stagehand.mdx index 4c1b3bba2e..26b99e9f23 100644 --- a/src/content/docs/browser-rendering/stagehand.mdx +++ b/src/content/docs/browser-rendering/stagehand.mdx @@ -51,6 +51,11 @@ Install the necessary dependencies: ### 2. Configure your Worker Update your wrangler configuration file to include the bindings for Browser Rendering and [Workers AI](/workers-ai/): + +:::note +Your Worker configuration must include the `nodejs_compat` compatibility flag and a `compatibility_date` of 2025-09-15 or later. +::: + ```jsonc { diff --git a/src/content/docs/browser-rendering/workers-bindings/browser-rendering-with-DO.mdx b/src/content/docs/browser-rendering/workers-bindings/browser-rendering-with-DO.mdx index a30de15429..cf37317c65 100644 --- a/src/content/docs/browser-rendering/workers-bindings/browser-rendering-with-DO.mdx +++ b/src/content/docs/browser-rendering/workers-bindings/browser-rendering-with-DO.mdx @@ -63,12 +63,16 @@ Configure your `browser-worker` project's [Wrangler configuration file](/workers Update your Wrangler configuration file with the Browser Rendering API binding, the R2 bucket you created and a Durable Object: +:::note +Your Worker configuration must include the `nodejs_compat` compatibility flag and a `compatibility_date` of 2025-09-15 or later. +::: + ```toml name = "rendering-api-demo" main = "src/index.js" -compatibility_date = "2023-09-04" +compatibility_date = "2025-09-17" compatibility_flags = [ "nodejs_compat"] account_id = "" diff --git a/src/content/docs/browser-rendering/workers-bindings/reuse-sessions.mdx b/src/content/docs/browser-rendering/workers-bindings/reuse-sessions.mdx index 919251a97a..c718d8f6fa 100644 --- a/src/content/docs/browser-rendering/workers-bindings/reuse-sessions.mdx +++ b/src/content/docs/browser-rendering/workers-bindings/reuse-sessions.mdx @@ -41,12 +41,16 @@ In your `browser-worker` directory, install Cloudflare's [fork of Puppeteer](/br ## 3. Configure the [Wrangler configuration file](/workers/wrangler/configuration/) +:::note +Your Worker configuration must include the `nodejs_compat` compatibility flag and a `compatibility_date` of 2025-09-15 or later. +::: + ```toml name = "browser-worker" main = "src/index.ts" -compatibility_date = "2023-03-14" +compatibility_date = "2025-09-17" compatibility_flags = [ "nodejs_compat" ] browser = { binding = "MYBROWSER" }