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 <cursoragent@cursor.com>
This commit is contained in:
parent
711a44265c
commit
2c630ebd50
2
proxy.ts
2
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$|$).*)'],
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user