()
| 3 | import { PrismaPg } from '@prisma/adapter-pg' |
| 4 | |
| 5 | const prismaClientSingleton = () => { |
| 6 | const pool = new PrismaPg({ connectionString: process.env.DATABASE_URL! }) |
| 7 | return new PrismaClient({ adapter: pool }) |
| 8 | } |
| 9 | |
| 10 | declare module '@hapi/hapi' { |
| 11 | interface ServerApplicationState { |