diff --git a/content/800-guides/230-betterauth-nextjs.mdx b/content/800-guides/230-betterauth-nextjs.mdx index 61e48510de..923281243c 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({ @@ -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);