Skip to content

Commit

Permalink
CCM-5340: fix middleware matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnuttall committed Jan 22, 2025
1 parent b48af77 commit 0b9c98f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ fetchIntercept.register(basicCredentialsInterceptor);
export default function Page() {
return (
<Suspense fallback={<p>Loading...</p>}>
test this
<AuthenticatorWrapper />
</Suspense>
);
Expand Down
9 changes: 1 addition & 8 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,10 @@ export const config = {
matcher: [
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
*/
{
source: '/((?!api|_next/static|_next/image|favicon.ico).*)',
missing: [
{ type: 'header', key: 'next-router-prefetch' },
{ type: 'header', key: 'purpose', value: 'prefetch' },
],
},
'/((?!_next/static|_next/image|favicon.ico).*)',
],
};

0 comments on commit 0b9c98f

Please sign in to comment.