fix and update

This commit is contained in:
lendry
2026-07-07 11:06:14 +03:00
parent f1821c2edc
commit 911e76f232
4 changed files with 131 additions and 221 deletions

View File

@@ -1,8 +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) {
return proxyReleaseDownload(request, 'windows');
const target = new URL('/downloads', request.nextUrl.origin);
return NextResponse.redirect(target, 302);
}