Skip to content

Commit

Permalink
feat(next): add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nonoakij committed Nov 13, 2023
1 parent d24237a commit 4922a63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/src/build/normalize-catchall-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function normalizeCatchAllRoutes(
Object.values(appPaths)
.flat()
.filter(isCatchAllRoute)
// Sorting is important because we want to match the most specific path.
.sort((a, b) => b.split('/').length - a.split('/').length)
),
]
Expand Down

0 comments on commit 4922a63

Please sign in to comment.