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

Commit 7d81a17

Browse files
committed
feat: no path redirect to repo
1 parent 2bcbb1f commit 7d81a17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/middleware.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ export const config = {
99
export async function middleware(req) {
1010
const path = req.nextUrl.pathname;
1111

12+
if (path === "/") {
13+
return NextResponse.redirect(
14+
new URL("/EddieHubCommunity/BioDrop", "https://github.com")
15+
);
16+
}
17+
1218
if (path !== "/") {
1319
return NextResponse.redirect(new URL(path, "https://github.com"));
1420
}

0 commit comments

Comments
 (0)