Skip to content

Commit

Permalink
Merge pull request #71 from Kinfe123/chore/docs
Browse files Browse the repository at this point in the history
fix: middleware issue
  • Loading branch information
Kinfe123 committed Jun 22, 2024
2 parents 7ecded6 + 5b8c815 commit 803aa07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/www/middleware.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";

export function middleware(request: NextRequest) {
if (request.nextUrl.pathname.startsWith("/login")) {
return NextResponse.rewrite(new URL("/", request.url));
}
}
Empty file added apps/www/middlewware.ts
Empty file.

0 comments on commit 803aa07

Please sign in to comment.