11 lines
288 B
TypeScript
11 lines
288 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
import { PrismaPg } from '@prisma/adapter-pg';
|
|
import { Pool } from 'pg';
|
|
|
|
const pool = new Pool({
|
|
connectionString: process.env.DATABASE_URL_STAGING,
|
|
});
|
|
|
|
export const postgresClient = new PrismaClient({
|
|
adapter: new PrismaPg(pool),
|
|
}); |