NextJS -> Next-Auth -> Drizzle ORM -> NeonDB Setup Help
I'm wondering if anyone has successfully set up this stack? I can't for the life of me figure out what is wrong with my setup, but when I try to signIn with OAuth, I get a NeonDBError.
[auth][error] AdapterError: Read more at https://errors.authjs.dev#adaptererror
[auth][cause]: NeonDbError: relation "account" does not exist
Auth.js | Errors
Authentication for the Web


5 Replies
eastern-cyanOP•7mo ago
I have no problems writing to the database with a seed file.

eastern-cyanOP•7mo ago
and the tables definitely exist
passive-yellow•7mo ago
@Jasnsy
Can you share the entire code?
eastern-cyanOP•6mo ago
I figured it out by stumbling accross some random YT video.
it started working when I used Pool from neon-serverless instead of http
passive-yellow•6mo ago
Glad it's all working!