From 7b2c498a8622754cf059bc2b7fcbbfd6393ed322 Mon Sep 17 00:00:00 2001 From: Ahliman HUSEYNOV Date: Fri, 9 May 2025 23:19:45 +0200 Subject: [PATCH] docs: with the recent version of prisma, we can directly use a shared client code(#2590) --- docs/content/docs/installation.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/installation.mdx b/docs/content/docs/installation.mdx index e5df9bb195..75e37c54f8 100644 --- a/docs/content/docs/installation.mdx +++ b/docs/content/docs/installation.mdx @@ -133,7 +133,8 @@ If you prefer to use an ORM or if your database is not supported by Kysely, you ```ts title="auth.ts" import { betterAuth } from "better-auth"; import { prismaAdapter } from "better-auth/adapters/prisma"; - import { PrismaClient } from "@prisma/client"; + // If your Prisma file is located elsewhere, you can change the path + import { PrismaClient } from "@/generated/prisma"; const prisma = new PrismaClient(); export const auth = betterAuth({