()
| 3 | import { PrismaClient } from './generated/client' |
| 4 | |
| 5 | const prismaClientSingleton = () => { |
| 6 | const pool = new PrismaPg({ connectionString: process.env.DATABASE_URL! }) |
| 7 | return new PrismaClient({ adapter: pool }) |
| 8 | } |
| 9 | |
| 10 | type PrismaClientSingleton = ReturnType<typeof prismaClientSingleton> |
| 11 |