Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/800-guides/230-betterauth-nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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);
Expand Down