Move /donate -> /philanthropy redirect to next.config.mjs

This commit is contained in:
Caleb Denio 2024-07-08 13:10:43 -04:00
parent 8487eadb44
commit e0e7c0af3d
No known key found for this signature in database
2 changed files with 6 additions and 5 deletions

View file

@ -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()
}

View file

@ -196,7 +196,12 @@ const nextConfig = {
source: '/slack',
destination: '/arcade?param=slack',
permanent: false
}
},
{
source: '/donate',
destination: '/philanthropy',
permanent: false
},
]
},
async rewrites() {