DT
Drizzle TeamDellgenius
Error: No database connection string was provided to `neon()`.
Hi.
Here is my code:
import { neon } from "@neondatabase/serverless";
import "dotenv/config";
import { drizzle } from "drizzle-orm/neon-http";
const sql = neon(process.env.NEON_DATABASE_URL!);
const db = drizzle(sql);
export default db;
I get the following error:
Error: No database connection string was provided to
neon(). Perhaps an environment variable has not been set?
I have tried hard coding in the string, and it works. I am not sure what's going on, since if I console log the connection string, it shows up just fine in the server log. I tried the solutions here by to no avail:
https://discord.com/channels/1043890932593987624/1203696288177070140
Would appreciate any advice!The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.4KMembers
View on DiscordWant results from more Discord servers?
More PostsSchema for that links user > friendsHello, I am trying to do a schema that links users and friends (https://gist.github.com/imaginamundocannot migrate database: PostgresError: unterminated /* comment at or near "/*# logs:
```
Tasks: 10 successful, 10 total
Cached: 2 cached, 10 total
Time: 6.717s
📦