hello! i’m wondering what the best practice is for defining dev-specific code within a worker script - i did try defining an env in the wrangler.json file with a variable referring to prod vs dev environment, but it seems that while subsequently running “wrangler dev” my worker lost access to the bindings defined thereafter in the file, so i’m just wondering if there’s a recommended approach for this that allows me to run certain code solely under “wrangler dev” or in prod. thanks!
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
CD
Cloudflare Developers
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news