mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-17 09:43:43 +08:00
feat: Adopt Edge runtime for API routes, add Cloudflare Pages build configuration, remove icon.png, and configure npm legacy peer dependencies.
This commit is contained in:
@@ -2,10 +2,11 @@ import { NextRequest, NextResponse } from 'next/server';
|
||||
import { processM3u8Content } from '@/lib/utils/proxy-utils';
|
||||
import { fetchWithRetry } from '@/lib/utils/fetch-with-retry';
|
||||
|
||||
export const runtime = 'nodejs';
|
||||
export const runtime = 'edge';
|
||||
|
||||
// Disable SSL verification for video sources with invalid certificates
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
// Note: This is not supported in Cloudflare Workers/Edge Runtime.
|
||||
// process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
const url = request.nextUrl.searchParams.get('url');
|
||||
|
||||
Reference in New Issue
Block a user