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 10b39a7 commit 6af7f15
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ export const config = {
],
};

const blocklist = [
'_next'
]

export default async function middleware(request: NextRequest) {
if (blocklist.some((pattern) => request?.nextUrl?.pathname?.includes(pattern))) {
return NextResponse.next()
}
// if a response is returned, return it otherwise call `next()`
for (const fn of middlewares) {
const response = await fn(request);
Expand Down

0 comments on commit 6af7f15

Please sign in to comment.