Skip to content

Commit

Permalink
chore: Update middleware matcher to exclude slice-simulator from Next…
Browse files Browse the repository at this point in the history
….js assets
  • Loading branch information
bonifacy1 committed Aug 20, 2024
1 parent 15dc660 commit ab05949
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/app/[lang]/[uid]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export async function generateStaticParams() {

const pages = await client.getAllByType('custompage')

console.log(pages)
return pages.map((page) => {
return {
uid: page.uid,
Expand Down
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ export async function middleware(request: NextRequest) {

export const config = {
// Don’t change the URL of Next.js assets starting with _next
matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
matcher: ['/((?!api|_next/static|_next/image|slice-simulator|favicon.ico).*)'],
};

0 comments on commit ab05949

Please sign in to comment.