#Does wrangler dev proxy all network requests when using --remote?

2 messages · Page 1 of 1 (latest)

pine walrus
#

I have a split DB interface. When local, my worker will open a connection to locally running Postgres (host: 127.0.0.1). When deployed, it uses a hosted DB. Everything works until I want to use proxied cloudflare services using with wrangler dev --remote. My Postgres connection locally fails to connect with the error: message: proxy request failed, cannot connect to the specified address. As soon as I turn off --remote, things work again (but I obviously can't hit any remote cloudflare worker services).

Is this intended/intentional? How could I avoid this, if at all possible?

narrow glade
#

—remote runs your worker in actual cf datacenter far away from your localhost