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