Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Jun 16, 2023
1 parent c623147 commit 016191c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/next/src/build/webpack/loaders/next-app-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ async function createTreeCodeFromPath(
: [parallelSegment]

subSegmentPath.push(
...normalizedParallelSegments.filter((segment) => segment !== 'page')
...normalizedParallelSegments.filter(
(segment) => segment !== PAGE_SEGMENT
)
)

const { treeCode: subtreeCode } = await createSubtreePropsFromSegmentPath(
Expand Down Expand Up @@ -476,7 +478,10 @@ const nextAppLoader: AppLoader = async function nextAppLoader() {
}

const isParallelRoute = rest[0].startsWith('@')

if (isParallelRoute && rest.length === 2 && rest[1] === 'page') {
matched[rest[0]] = [PAGE_SEGMENT]
continue
}
if (isParallelRoute) {
matched[rest[0]] = rest.slice(1)
continue
Expand Down

0 comments on commit 016191c

Please sign in to comment.