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
conscious-sapphireOP•8mo ago
I have no problems writing to the database with a seed file.

conscious-sapphireOP•8mo ago
and the tables definitely exist
correct-apricot•8mo ago
@Jasnsy
Can you share the entire code?
conscious-sapphireOP•8mo 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
correct-apricot•8mo ago
Glad it's all working!