Next.js Discord

Discord Forum

Next-Auth and Neon postgres

Unanswered
Lakeland Terrier posted this in #help-forum
Open in Discord
Lakeland TerrierOP
Does anyone have up to date code example of a next-auth working with neon's postgres database? I am trying to get it working here

https://github.com/juligris/juliusgrisette

Currently it doesn't even build returning

Build error occurred
Error: Failed to collect page data for /api/auth/[...nextauth]

The "stable" build that is currently on https://juliusgrisette.vercel.app/ returns adapter errors when you try to log in under the auth section. But I tried updating to the version suggested at the bottom of this page.

https://github.com/nextauthjs/next-auth/issues/9493

But I am just scratching my head.


I spun up a postgres docker container + cloudflared tunnel in an attempt to self host a database but that was unsucesful as well. Any tips on where I should go from here?

0 Replies