配置 Edge Runtime 以支持 Cloudflare Pages

This commit is contained in:
katelya
2025-09-02 13:56:01 +08:00
parent 348494336a
commit 0ceed4a5f7
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -4,6 +4,9 @@ import { getAuthInfoFromCookie } from '@/lib/auth';
import { getStorage } from '@/lib/db';
import { EpisodeSkipConfig } from '@/lib/types';
// 配置 Edge Runtime - Cloudflare Pages 要求
export const runtime = 'edge';
export async function POST(request: NextRequest) {
try {
const body = await request.json();