brandonpsmith
CDCloudflare Developers
•Created by brandonpsmith on 3/5/2025 in #hyperdrive
neon branches
okay that makes sense. i set the neon url in my wrangler config as the localConnectionString. but when i run wrangler dev and it gives me the hyperdrive.local host. i can't connect to that host. ex. i tried connecting to it via psql ...
psql: error: could not translate host name "<id>.hyperdrive.local" to address: nodename nor servname provided, or not known
7 replies
CDCloudflare Developers
•Created by brandonpsmith on 3/5/2025 in #hyperdrive
neon branches
okay i figured out what is happening. there is a bug when using WRANGLER_HYPERDRIVE_LOCAL_CONNECTIONSTRING<BINDING> variables in the
.dev.vars
file. wrangler dev
throws an error looking for these variables before the cli actually loads the .dev.vars
file. so i was using dotenv-cli
to load these before running wrangler dotenv -e .dev.vars wrangler dev
and somehow that mucks everything up. i moved the variables from the .dev.vars
to the wrangler config "localConnectionString" and ran wrangler dev
and it's still not working. do you have any recommendations?7 replies
CDCloudflare Developers
•Created by brandonpsmith on 3/5/2025 in #hyperdrive
neon branches
i just tried it with
wrangler dev --remote
. BINDING.connectionString is still returning a hyperdrive.local
host7 replies
CDCloudflare Developers
•Created by brandonpsmith on 3/5/2025 in #hyperdrive
neon branches
i use both but i've only tried it with
wrangler dev
7 replies