From 4f91549ca927beea8f2bd6d3c53fca103f1d3fde Mon Sep 17 00:00:00 2001 From: kuekhaoyang Date: Thu, 19 Feb 2026 14:31:59 +0800 Subject: [PATCH] feat: Update IPTV API routes to use Edge runtime. --- app/api/iptv/route.ts | 2 +- app/api/iptv/stream/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/iptv/route.ts b/app/api/iptv/route.ts index fa12ade..7f2516a 100644 --- a/app/api/iptv/route.ts +++ b/app/api/iptv/route.ts @@ -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'); diff --git a/app/api/iptv/stream/route.ts b/app/api/iptv/stream/route.ts index 65b6e84..b2da449 100644 --- a/app/api/iptv/stream/route.ts +++ b/app/api/iptv/stream/route.ts @@ -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://')) {