Skip to content

Commit

Permalink
misc(budget-app): fix deploy timeout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed Aug 24, 2024
1 parent 116c4c8 commit bede034
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions budget-app/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ export function middleware(request: NextRequest) {
// See "Matching Paths" below to learn more
export const config = {
matcher: [
/*
https://github.com/Azure/static-web-apps/issues/1427
* Match all request paths except for the ones starting with:
* - .swa (Azure static web apps)
*/
'/((?!.swa).*)',
"/((?!public|_next|api/auth|api/auth/logout).*)", // match all paths not starting with 'public' or 'auth' or '_next' or 'api/auth'
],
};

0 comments on commit bede034

Please sign in to comment.