diff options
Diffstat (limited to 'packages/db/index.ts')
| -rw-r--r-- | packages/db/index.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/db/index.ts b/packages/db/index.ts new file mode 100644 index 00000000..fa46ca1f --- /dev/null +++ b/packages/db/index.ts @@ -0,0 +1,9 @@ +import { PrismaClient } from "@prisma/client"; + +const prisma = new PrismaClient(); + +// For some weird reason accessing @prisma/client from any package is causing problems (specially in error handling). +// Re export them here instead. +export * from "@prisma/client"; + +export default prisma; |
