Skip to content

Commit

Permalink
πŸ”¨ settings: middleware μ„ΈνŒ… #10
Browse files Browse the repository at this point in the history
  • Loading branch information
froggy1014 committed Jul 30, 2024
1 parent 2451d58 commit ac5333a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/middleware.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export { auth as middleware } from "@/auth";

// Or like this if you need to do something here.
// export default auth((req) => {
// console.log(req.auth) // { session: { user: { ... } } }
// })

// Read more: https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
export const config = {
matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"],
};

0 comments on commit ac5333a

Please sign in to comment.