Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: logging to middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Jun 30, 2024
1 parent 28efd3c commit feb7d39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const config = {
export async function middleware(req) {
const path = req.nextUrl.pathname;

console.log("PATH", path);
if (path !== "/") {
return NextResponse.redirect(new URL(path, "https://github.com"));
}
Expand Down

0 comments on commit feb7d39

Please sign in to comment.