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