配置 Edge Runtime 以支持 Cloudflare Pages
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user