Skip to content

Commit 5dc7ed4

Browse files
authored
docs: adding a closing parenthesis (#11064)
1 parent 19da756 commit 5dc7ed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pages/getting-started/migrating-to-v5.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,10 @@ import NextAuth from "next-auth"
306306
// export const { auth: middleware } = NextAuth(authConfig)
307307

308308
// 2. Wrapped middleware option
309-
const { auth } = NextAuth(authConfig);
309+
const { auth } = NextAuth(authConfig)
310310
export default auth(async function middleware(req: NextRequest) {
311311
// Your custom middleware logic goes here
312-
}
312+
})
313313
```
314314

315315
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.

0 commit comments

Comments
 (0)