fix and update
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import type { NextRequest } from 'next/server';
|
||||
import { proxyReleaseDownload } from '@/lib/proxy-release-download';
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
export const runtime = 'nodejs';
|
||||
|
||||
export async function GET(request: NextRequest, context: { params: Promise<{ releaseId: string }> }) {
|
||||
const { releaseId } = await context.params;
|
||||
return proxyReleaseDownload(request, 'windows', releaseId);
|
||||
export async function GET(request: NextRequest) {
|
||||
const target = new URL('/downloads', request.nextUrl.origin);
|
||||
return NextResponse.redirect(target, 302);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user