配置 Edge Runtime 以支持 Cloudflare Pages

This commit is contained in:
katelya committed 2025-09-02 13:56:01 +08:00
1 parent 348494336a
commit 0ceed4a5f7
2 files changed
+4 -1

No files matched your search

+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();