Edge runtime issues after upgrading drizzle-orm to v0.34.1

Hello! I am using drizzle with Next.js project that is hosted on vercel. One of the routes is using edge runtime. After upgrading from v0.33.0 to v0.34.1 I sometimes (not always) get INTERNAL_EDGE_FUNCTION_INVOCATION_FAILED from vercel when visiting that route. I create a new drizzle client for every request like this:
import { Pool } from '@neondatabase/serverless';
import { drizzle } from 'drizzle-orm/neon-serverless';
const pool = new Pool({ connectionString: env.DATABASE_URL });
const client = drizzle(pool, { schema });
import { Pool } from '@neondatabase/serverless';
import { drizzle } from 'drizzle-orm/neon-serverless';
const pool = new Pool({ connectionString: env.DATABASE_URL });
const client = drizzle(pool, { schema });
Since the only difference between working and non-working deployment is upgrading drizzle-orm from 0.33.0 to 0.34.1, I think it might be a problem with the library. Is anyone else having similar problems after upgrading the library?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server