From 689e44037300d765de9cb79ea1dca9411a9d804d Mon Sep 17 00:00:00 2001 From: Vanja Popovic Date: Tue, 12 Dec 2023 13:57:34 +0000 Subject: [PATCH] fix: remove workaround for prisma as prisma is included in external packages by default --- lib/auth.ts | 5 +---- next.config.js | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/auth.ts b/lib/auth.ts index f4fbd79..1d606e9 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -11,10 +11,7 @@ import { db } from "@/lib/db" const postmarkClient = new Client(env.POSTMARK_API_TOKEN) export const authOptions: NextAuthOptions = { - // huh any! I know. - // This is a temporary fix for prisma client. - // @see https://github.com/prisma/prisma/issues/16117 - adapter: PrismaAdapter(db as any), + adapter: PrismaAdapter(db), session: { strategy: "jwt", }, diff --git a/next.config.js b/next.config.js index 05ee8f2..667cc5c 100644 --- a/next.config.js +++ b/next.config.js @@ -13,9 +13,6 @@ const nextConfig = { }, ], }, - experimental: { - serverComponentsExternalPackages: ["@prisma/client"], - }, } module.exports = withContentlayer(nextConfig)