Files
wr.do/middleware.ts
T
2024-07-26 22:08:57 +08:00

11 lines
382 B
TypeScript

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).*)"],
}