Debugging O2O locally

I'm building a worker that uses O2O to Shopify and I'm curious how I can debug this locally. I use fetch(request) which forwards the request on to the origin (Shopify) but locally it it won't know where the origin is. If I overwrite the url to fetch from Shopify it will hit my worker in production. How are others working around this w/ O2O?
1 Reply
Erisa
Erisa11mo ago
Have you tried using wrangler dev --remote? That should send the requests through your Cloudflare zone config, using the first route in wrangler.toml to derive the zone used
Want results from more Discord servers?
Add your server