#workers help

I'm trying to enable nodejs compat for my worker via cloudfare dashboard. But there is no such "function" page as specified in the doc. Is there any workaround for this?
No description
No description
1 Reply
Beny
Beny8mo ago
You need to add the nodejs_compat flag to the script. This can't be done from the Dashboard. The docs you reference to are for Cloudflare Pages rather than Workers. Add this line to wrangler.toml
compatibility_flags = ["nodejs_compat"]
compatibility_flags = ["nodejs_compat"]
Want results from more Discord servers?
Add your server