12 lines
177 B
TypeScript
12 lines
177 B
TypeScript
import { withAuth } from 'next-auth/middleware'
|
|
|
|
export default withAuth({
|
|
pages: {
|
|
signIn: '/login',
|
|
},
|
|
})
|
|
|
|
export const config = {
|
|
matcher: ['/dashboard/:path*'],
|
|
}
|