Skip to content

Commit

Permalink
fix middleware to not make to return all pages html when doing client…
Browse files Browse the repository at this point in the history
… redirects - weird
  • Loading branch information
tsubik committed Nov 4, 2024
1 parent f6bc7c6 commit 8adc782
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ export function middleware(req) {
new URL(`/${locale}${req.nextUrl.pathname}${req.nextUrl.search}`, req.url)
)
}
return NextResponse.next();
}

export const config = {
matcher: '/reset-password',
}

0 comments on commit 8adc782

Please sign in to comment.