add redirect to login when user on page which requires account
This commit is contained in:
parent
a35297728c
commit
ad4e35a04c
5
src/middleware.ts
Normal file
5
src/middleware.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export { default } from "next-auth/middleware"
|
||||||
|
|
||||||
|
export const config = {
|
||||||
|
matcher: '/resources/:id/edit',
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user