For Workes & Pages, what is the name of the domain?
https://race-control.trackside.dev/
What is the error message?
“TypeError: Cannot read properties of undefined (reading ‘fetch’)”
What is the issue or error you’re encountering
The Browser Rendering context object isn’t being set in production
What steps have you taken to resolve the issue?
I’ve double checked the Browser Rendering documentation and have the wrangler.toml configuration properly set:
name = “race-control”
pages_build_output_dir = “build/client”
compatibility_date = “2024-07-25”
compatibility_flags = [ “nodejs_compat” ]
browser = { binding = “CRAWLER_BROWSER” }
It’s tested and working in my preview branch (I’m using Cloudflare Pages for this project). But when I merged my changes the “CRAWLER_BROWSER” context wasn’t being set. I logged the output in both Preview and Production and verified it’s properly set in Preview but logs null in Production
What are the steps to reproduce the issue?
Sending a POST request to the endpoint that’s using puppeteer with Browser Rendering.