neon with cloudflare hyperdrive in hono.js using postgres.js
hello everyone,
i'm having this error that I haven't quite know how to solve yet. it's related to using neon with postgres.js and hyperdrive
i'm trying to set up a connection as follows:
but this is the output that I'm getting in the console:
i'm not sure what I'm supposed to do since the url provided by hyperdrive has 
sslmode=false.
can anyone point me in the right direction?4 Replies
xenial-black•5mo ago
Try setting sslmode to require:
https://github.com/neondatabase/examples/tree/main/with-hyperdrive
GitHub
examples/with-hyperdrive at main · neondatabase/examples
Examples and code snippets demonstrating common ways of integrating Neon with various frameworks and languages. - neondatabase/examples
ambitious-aquaOP•5mo ago
i followed that guide using the command
 to create my hyperdrive url but it always ends with 
sslmode=disable.
i asked claude 4 about it and this is what is says:
that makes me think, maybe that error comes from the postgres.js library?
it only happens on local though, so I'm not sure what to doambitious-aquaOP•5mo ago
in case anyone is wondering:

ambitious-aquaOP•5mo ago
wrangler dev --remote work perfectly