We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2afa16 commit 048a95cCopy full SHA for 048a95c
src/middleware.ts
@@ -37,6 +37,14 @@ export async function middleware(request: NextRequest) {
37
return NextResponse.redirect(new URL("/", request.url));
38
}
39
40
+ if (pathname.startsWith("/informations/write") && !accessToken) {
41
+ return NextResponse.redirect(new URL("/auth/signin", request.url));
42
+ }
43
+
44
+ if (pathname.startsWith("/informations/edit") && !accessToken) {
45
46
47
48
if (pathname.startsWith("/gathering/write") && !accessToken) {
49
return NextResponse.redirect(new URL("/auth/signin", request.url));
50
0 commit comments