From 7d81a17828f70da158545cfa9bba8b3cf48e557b Mon Sep 17 00:00:00 2001 From: Eddie Jaoude Date: Sun, 30 Jun 2024 21:52:30 +0100 Subject: [PATCH] feat: no path redirect to repo --- src/middleware.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/middleware.js b/src/middleware.js index 8c11e9c9186..4a0c2880d5e 100644 --- a/src/middleware.js +++ b/src/middleware.js @@ -9,6 +9,12 @@ export const config = { export async function middleware(req) { const path = req.nextUrl.pathname; + if (path === "/") { + return NextResponse.redirect( + new URL("/EddieHubCommunity/BioDrop", "https://github.com") + ); + } + if (path !== "/") { return NextResponse.redirect(new URL(path, "https://github.com")); }