Skip to content

Commit

Permalink
docs: adding a closing parenthesis (#11064)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrushie authored Jun 4, 2024
1 parent 19da756 commit 5dc7ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/getting-started/migrating-to-v5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ import NextAuth from "next-auth"
// export const { auth: middleware } = NextAuth(authConfig)

// 2. Wrapped middleware option
const { auth } = NextAuth(authConfig);
const { auth } = NextAuth(authConfig)
export default auth(async function middleware(req: NextRequest) {
// Your custom middleware logic goes here
}
})
```

The above is just an example. **The main idea**, is to separate the part of the configuration that is edge-compatible from the rest, and only import the edge-compatible part in Middleware/Edge pages/routes. You can read more about this workaround in the [Prisma docs](/getting-started/adapters/prisma), for example.
Expand Down

0 comments on commit 5dc7ed4

Please sign in to comment.