fix: remove workaround for prisma as prisma is included in external packages by default

This commit is contained in:
Vanja Popovic 2023-12-12 13:57:34 +00:00
parent 4453fc4534
commit 689e440373
2 changed files with 1 additions and 7 deletions

View file

@ -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",
},

View file

@ -13,9 +13,6 @@ const nextConfig = {
},
],
},
experimental: {
serverComponentsExternalPackages: ["@prisma/client"],
},
}
module.exports = withContentlayer(nextConfig)