配置 Edge Runtime 以支持 Cloudflare Pages
This commit is contained in:
1 parent
348494336a
commit
0ceed4a5f7
2 files changed
+4
-1
No files matched your search
@@ -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