Skip to content

Commit 0ceed4a

Browse files
committed
配置 Edge Runtime 以支持 Cloudflare Pages
1 parent 3484943 commit 0ceed4a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

public/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/api/skip-configs/route.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { getAuthInfoFromCookie } from '@/lib/auth';
44
import { getStorage } from '@/lib/db';
55
import { EpisodeSkipConfig } from '@/lib/types';
66

7+
// 配置 Edge Runtime - Cloudflare Pages 要求
8+
export const runtime = 'edge';
9+
710
export async function POST(request: NextRequest) {
811
try {
912
const body = await request.json();

0 commit comments

Comments
 (0)