From 9aea3698a01b0c0fac70ba4f4ff1cbd2cc3afb95 Mon Sep 17 00:00:00 2001 From: Bond Date: Sat, 6 Dec 2025 15:35:48 +0800 Subject: [PATCH 1/2] fix: update path for generated prisma client to match the rest of the code --- content/800-guides/230-betterauth-nextjs.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/800-guides/230-betterauth-nextjs.mdx b/content/800-guides/230-betterauth-nextjs.mdx index 61e48510de..6514adc5f7 100644 --- a/content/800-guides/230-betterauth-nextjs.mdx +++ b/content/800-guides/230-betterauth-nextjs.mdx @@ -133,7 +133,7 @@ touch src/lib/prisma.ts Set up the Prisma client like this: ```tsx file=src/lib/prisma.ts -import { PrismaClient } from "@/generated/prisma/client"; +import { PrismaClient } from "@/src/generated/prisma/client"; import { PrismaPg } from "@prisma/adapter-pg"; const adapter = new PrismaPg({ From 9fff1e1ecefa0138954f1c5a4f2581fa0400af03 Mon Sep 17 00:00:00 2001 From: Bond Date: Sat, 6 Dec 2025 15:48:33 +0800 Subject: [PATCH 2/2] fix: update path for lib/auth to match the rest of the code --- content/800-guides/230-betterauth-nextjs.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/800-guides/230-betterauth-nextjs.mdx b/content/800-guides/230-betterauth-nextjs.mdx index 6514adc5f7..923281243c 100644 --- a/content/800-guides/230-betterauth-nextjs.mdx +++ b/content/800-guides/230-betterauth-nextjs.mdx @@ -351,7 +351,7 @@ touch "src/app/api/auth/[...all]/route.ts" Add the following code to the newly created `route.ts` file. This code uses a helper from Better Auth to create Next.js-compatible `GET` and `POST` request handlers. ```ts -import { auth } from "@/lib/auth"; +import { auth } from "@/src/lib/auth"; import { toNextJsHandler } from "better-auth/next-js"; export const { POST, GET } = toNextJsHandler(auth);