mirror of
https://github.com/System-End/site.git
synced 2026-04-19 15:18:18 +00:00
Move /donate -> /philanthropy redirect to next.config.mjs
This commit is contained in:
parent
8487eadb44
commit
e0e7c0af3d
2 changed files with 6 additions and 5 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -196,7 +196,12 @@ const nextConfig = {
|
|||
source: '/slack',
|
||||
destination: '/arcade?param=slack',
|
||||
permanent: false
|
||||
}
|
||||
},
|
||||
{
|
||||
source: '/donate',
|
||||
destination: '/philanthropy',
|
||||
permanent: false
|
||||
},
|
||||
]
|
||||
},
|
||||
async rewrites() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue