Files
Lovemap/app/api/utils.ts
T

10 lines
182 B
TypeScript

import { createPool } from '@vercel/postgres';
export const getDBConnexion = () => {
const pool = createPool({
connectionString: process.env.POSTGRES_URL,
});
return pool;
};