From 9bdf375304011d30f00518f90a260aa49757196c Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sun, 20 Jul 2025 16:24:28 +0800 Subject: [PATCH] api: fix cors for api with new nextjs version (#1633) --- apps/readest-app/src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/readest-app/src/middleware.ts b/apps/readest-app/src/middleware.ts index 7ec04325..0e1f57bb 100644 --- a/apps/readest-app/src/middleware.ts +++ b/apps/readest-app/src/middleware.ts @@ -45,5 +45,5 @@ export function middleware(request: NextRequest) { } export const config = { - matcher: ['/api/stripe/:path*', '/api/metadata/:path*'], + matcher: ['/api/:path*', '/api/stripe/:path*', '/api/metadata/:path*'], };