Hyperdrive local does not seem to support SSL #10830
Replies: 5 comments
-
|
This makes hyperdrive unusable for me, because developing with --remote flag is not doable, lot of ping and no local debugger. It should be the first thing they at Neon website when using Hyperdrive. The have it at the very end as if not important "oh btw you cannot work locally if you use it" |
Beta Was this translation helpful? Give feedback.
-
|
This issue makes it impossible for the local environment to match the server's environment exactly, which is unfortunate. |
Beta Was this translation helpful? Give feedback.
-
|
I have shared it with the internal team and track it in SQC-645. |
Beta Was this translation helpful? Give feedback.
-
|
We're aware of this issue and are considering approaches to make it possible to connect to a remote database. Note that the earliest timeline is in 2026 due to changes needed in workerd and Workers runtime |
Beta Was this translation helpful? Give feedback.
-
|
for anyone still on the issue, so far the "fix" has been to use a conditional variable, on dev/test mode I'm using a direct connection to the postgres instance, eg: const url = env.isLocal ? env.DB_URL : env.HYPERDRIVE.connectionString
const client = postgres(url, {
fetch_types: false,
max: 2,
}); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What versions & operating system are you using?
wrangler 4.26.1
Please provide a link to a minimal reproduction
No response
Describe the Bug
Hyperdrive does not seem to support SSL, when connecting to a public database.
I'm using Neon, Drizzle and the URL
postgresql://user:pass@host.aws.neon.tech/neondb?sslmode=require&channel_binding=requireHowever, whenever I try to run a query, the code throws
error: connection is insecure (try usingsslmode=require)I did try:
WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVEin .env -> Doesn't worklocalConnectionStringin the json config -> Doesn't workPlease provide any relevant error logs
No response
Beta Was this translation helpful? Give feedback.
All reactions