Skip to content

Commit

Permalink
matcher warning fix (#671)
Browse files Browse the repository at this point in the history
* matcher warning fix

* removed match from backoffice as well

---------

Co-authored-by: Lefteris Hytiroglou <“[email protected]”>
  • Loading branch information
elevchyt and Lefteris Hytiroglou authored Nov 14, 2024
1 parent 346c26f commit e5571d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions apps/backoffice/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import { type AJwtPayload } from '@repo/shared-types';
import { env } from './env.mjs';
import { AllRoles, UserStatus } from './graphql/generated/schema-server';

export const config = {
matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
};

export async function middleware(request: NextRequest): Promise<NextResponse> {
const token = request.cookies.get(TOKEN_KEY)?.value;
const refreshToken = request.cookies.get(REFRESH_TOKEN_KEY)?.value;
Expand Down
4 changes: 0 additions & 4 deletions apps/web/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ const publicPaths = [
'/api/auth/reset-password',
];

export const config = {
matcher: ['/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)'],
};

export async function middleware(request: NextRequest): Promise<NextResponse> {
const token = request.cookies.get(TOKEN_KEY)?.value;
const refreshToken = request.cookies.get(REFRESH_TOKEN_KEY)?.value;
Expand Down

0 comments on commit e5571d9

Please sign in to comment.