From f84e03c5e3b1f36c40e4e729af08f389b6d2be7b Mon Sep 17 00:00:00 2001 From: shinya Date: Tue, 29 Jul 2025 18:41:02 +0800 Subject: [PATCH] fix: cf build --- VERSION.txt | 2 +- src/app/api/skipconfigs/route.ts | 2 ++ src/lib/version.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index dadaf84..5a2b014 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -20250729183551 \ No newline at end of file +20250729184103 \ No newline at end of file diff --git a/src/app/api/skipconfigs/route.ts b/src/app/api/skipconfigs/route.ts index e2b920d..9109459 100644 --- a/src/app/api/skipconfigs/route.ts +++ b/src/app/api/skipconfigs/route.ts @@ -6,6 +6,8 @@ import { getAuthInfoFromCookie } from '@/lib/auth'; import { db } from '@/lib/db'; import { SkipConfig } from '@/lib/types'; +export const runtime = 'edge'; + export async function GET(request: NextRequest) { try { const authInfo = getAuthInfoFromCookie(request); diff --git a/src/lib/version.ts b/src/lib/version.ts index 578feab..bc06c75 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -2,7 +2,7 @@ 'use client'; -const CURRENT_VERSION = '20250729183551'; +const CURRENT_VERSION = '20250729184103'; // 版本检查结果枚举 export enum UpdateStatus {