From 2c630ebd505c19bb2a034a25b06435541464de9e Mon Sep 17 00:00:00 2001 From: Strtus Date: Tue, 19 May 2026 00:38:07 +0800 Subject: [PATCH] Exclude all API routes from proxy matcher Prevent middleware proxy from intercepting storage upload endpoints by excluding every /api path, restoring upload token handshake reliability. Co-authored-by: Cursor --- proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.ts b/proxy.ts index ea92250c..0b9c480c 100644 --- a/proxy.ts +++ b/proxy.ts @@ -54,5 +54,5 @@ export const config = { // - /template-image-tight // - /template-url // eslint-disable-next-line max-len - matcher: ['/((?!api$|api/auth|_next/static|_next/image|favicon.ico$|favicons/|grid$|full$|about$|home-image$|template-image$|template-image-tight$|template-url$|$).*)'], + matcher: ['/((?!api(?:/|$)|_next/static|_next/image|favicon.ico$|favicons/|grid$|full$|about$|home-image$|template-image$|template-image-tight$|template-url$|$).*)'], };