feat: Update IPTV API routes to use Edge runtime.

This commit is contained in:
kuekhaoyang
2026-02-19 14:31:59 +08:00
parent c0fcfcc4ac
commit 4f91549ca9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
import { NextRequest, NextResponse } from 'next/server';
export const runtime = 'nodejs';
export const runtime = 'edge';
export async function GET(request: NextRequest) {
const url = request.nextUrl.searchParams.get('url');
+1 -1
View File
@@ -6,7 +6,7 @@
import { NextRequest, NextResponse } from 'next/server';
export const runtime = 'nodejs';
export const runtime = 'edge';
function resolveUrl(base: string, relative: string): string {
if (relative.startsWith('http://') || relative.startsWith('https://')) {