mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-12 23:33:43 +08:00
feat: Update IPTV API routes to use Edge runtime.
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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://')) {
|
||||
|
||||
Reference in New Issue
Block a user