Skip to content

Commit

Permalink
ar(feat) [DPCP-37]: Localization
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 21, 2024
1 parent 4089147 commit c7bfa57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export const config = {
const blocklist = ['_next'];

export default async function middleware(request: NextRequest) {
const url = request?.nextUrl?.pathname
const url = request?.nextUrl?.pathname;
if (blocklist.some((pattern) => url?.includes(pattern))) {
console.log("--- PATTERN BOCKED: ---", url)
console.log('--- PATTERN BOCKED: ---', url);
return NextResponse.next();
}
// if a response is returned, return it otherwise call `next()`
Expand Down

0 comments on commit c7bfa57

Please sign in to comment.