Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ You can also check the

## Unreleased

- Fixes
- Correctly set CSP headers for index pages

## 6.5.0 – 2026-06-01

- Features
Expand Down
6 changes: 6 additions & 0 deletions app/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ export function middleware(request: NextRequest) {

export const config = {
matcher: [
// The negative-lookahead pattern below gets compiled by Next.js (when i18n
// is configured) into a regex that requires two path segments (locale +
// rest), which silently excludes bare locale-root paths like "/", "/de",
// "/en". Add those explicitly so they still go through the middleware.
"/",
"/(de|fr|it|en)",
{
source: "/((?!_next/static|_next/image|favicon\\.ico).*)",
missing: [
Expand Down
Loading