9 lines
253 B
TypeScript
9 lines
253 B
TypeScript
import { NextRequest, NextResponse } from 'next/server';
|
|
|
|
export const runtime = 'nodejs';
|
|
|
|
export async function GET(request: NextRequest) {
|
|
const target = new URL('/downloads', request.nextUrl.origin);
|
|
return NextResponse.redirect(target, 302);
|
|
}
|