fix: docker runtime

This commit is contained in:
shinya
2025-06-30 22:31:40 +08:00
parent 942b7734c4
commit 79c7a6851f
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
import { NextRequest, NextResponse } from 'next/server';
export const runtime = 'edge';
// 全站(含 /api鉴权中间件运行于 Edge Runtime。
export async function middleware(req: NextRequest) {
const { pathname, search } = req.nextUrl;