Drizzle Studio - Timeout - PG - NEON

Hi, I using Drizzle with Neon in Vercel. The current drizzle version is: drizzle-kit: v0.20.14 drizzle-orm: v0.29.3 I had this error, when run drizzle studio locally, or when I try run my application Error: connect ETIMEDOUT 205.251.197.189:5432 After some reloads, sometimes works, appears be intermittent. In my ENV has: pooler.us-east-2.aws.neon.tech/database?sslmode=require and import { neon } from '@Neondatabase/serverless'; import { drizzle } from 'drizzle-orm/neon-http'; ... const sql = neon(process.env.DATABASE_URL!); export const db = drizzle(sql, { schema }); export from "drizzle-orm"; ------------------------------------------ Someone could help me?
1 Reply
Mykhailo
Mykhailo7mo ago
Hello @Podgorski! Am I right that your setup is Neon with Vercel Edge functions? You can follow this tutorial to setup them https://orm.drizzle.team/learn/tutorials/drizzle-with-vercel-edge-functions#any-postgresql-client
Drizzle ORM - Drizzle with Vercel Edge Functions
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Want results from more Discord servers?
Add your server