6076169
1
2
3
4
5
6
7
8
9
10
import { neon } from "@neondatabase/serverless"; export default async function getDbConnection() { if (!process.env.DATABASE_URL) { throw new Error("Neon Database URL is not defined"); } const sql = neon(process.env.DATABASE_URL); return sql; }