Skip to content

Commit

Permalink
Fix leftover todo in loader (#36734)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed May 6, 2022
1 parent a1bb1c6 commit e78c42c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions packages/next/build/entries.ts
Expand Up @@ -366,11 +366,6 @@ export async function createEntrypoints(params: CreateEntrypointsParams) {
const getEntryHandler =
(mappings: Record<string, string>, isViews: boolean) =>
async (page: string) => {
// TODO: @timneutkens do not pass layouts to entry here
if (isViews && page.endsWith('/layout')) {
return
}

const bundleFile = normalizePagePath(page)
const clientBundlePath = posix.join('pages', bundleFile)
const serverBundlePath = posix.join(
Expand Down
3 changes: 2 additions & 1 deletion packages/next/build/index.ts
Expand Up @@ -318,10 +318,11 @@ export default async function build(
.traceAsyncFn(() =>
recursiveReadDir(
viewsDir,
new RegExp(`\\.(?:${config.pageExtensions.join('|')})$`)
new RegExp(`page\\.(?:${config.pageExtensions.join('|')})$`)
)
)
}

// needed for static exporting since we want to replace with HTML
// files

Expand Down

0 comments on commit e78c42c

Please sign in to comment.