N
Neon•2y ago
adverse-sapphire

Error: No database connection string was provided to `neon()`

Hi guys, i'm trying to use neon db in a next js app, i've set my enviroment variables in a .env.local file but im getting this error.
1 Reply
deep-jade
deep-jade•2y ago
This suggests your Next.js application isn't reading the variables. Are you sure you've saved the .env.local and haven't mispelled the variable name when reading process.env.DATABASE_URL? Share some code maybe 🙂

Did you find this page helpful?