Hanging timeout server-side requests using Cloudflare Hyperdrive
Anyone have success using Cloudflare Hyperdrive with Better-Auth?
Basically, I have sign-in functionality server-side like:
But it's hanging forever when I hit it. No logs, just forever loading.
Auth looks like:
And getDb function looks like:
If I use the postgres connectionString directly, it works. But if I use the Hyperdrive connectionString, it hangs.
Any ideas?
3 Replies
why email.tostring
it must be string
it's form data. It's a FormDataEntryValue type, and adding
toString()
turns the value to a string. Will update the code excerpt. I don't think it's an issue there, as this functionality works when I use a regular postgres connectionString, but hangs forever when I use a Hyperdrive connectionString.better auth and cloudflare hyperdrive doesn't work
I also tried
@neondatabase/serverless
but I ended to get one more error