Configuring the neon serverless driver to connect via pooling and websockets:
import { Pool } from "@neondatabase/serverless";import { drizzle } from "drizzle-orm/neon-serverless";
const pool = new Pool({ connectionString: serverConfig.databaseConnectionString,});
export const db = drizzle(pool, {});Getting 'The edge function timed out' error as soon as the nextauth middleware (v5) [running on a edge function] tries to connect the database.

Releated: https://github.com/nextauthjs/next-auth/issues/10773