diff --git a/middleware.js b/middleware.js index f96baab2..3edfc883 100644 --- a/middleware.js +++ b/middleware.js @@ -13,9 +13,5 @@ export function middleware(request) { return response } - if (request.nextUrl.pathname === '/donate/') { - return NextResponse.redirect('https://hackclub.com/philanthropy/') - } - return NextResponse.next() } diff --git a/next.config.mjs b/next.config.mjs index b2961bdd..032d7ce8 100755 --- a/next.config.mjs +++ b/next.config.mjs @@ -196,7 +196,12 @@ const nextConfig = { source: '/slack', destination: '/arcade?param=slack', permanent: false - } + }, + { + source: '/donate', + destination: '/philanthropy', + permanent: false + }, ] }, async rewrites() {