Skip to content

Commit

Permalink
fix: middleware matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Aug 30, 2024
1 parent 36613d4 commit 83c7b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/(default)/storage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { items } from '@/mock-data/items';
import { useTranslations } from 'next-intl';
import { getTranslations, unstable_setRequestLocale } from 'next-intl/server';
import Image from 'next/image';
import { createSearchParamsCache, parseAsInteger } from 'nuqs/parsers';
import { createSearchParamsCache, parseAsInteger } from 'nuqs/server';

export async function generateMetadata({
params: { locale },
Expand Down
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export async function middleware(request: NextRequest): Promise<NextResponse> {
}

export const config = {
matcher: ['/', '/(en|no)/:path*'],
matcher: ['/', '/(en|no)/:path*', '/((?!_next|.*\\..*).*)'],
};

0 comments on commit 83c7b00

Please sign in to comment.