Skip to content

Commit

Permalink
Fix client entry point prefix (#38445)
Browse files Browse the repository at this point in the history
client prefix should depend on the pages type
  • Loading branch information
huozhi authored Jul 8, 2022
1 parent 979da91 commit 3da3df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export async function createEntrypoints(params: CreateEntrypointsParams) {
(mappings: Record<string, string>, pagesType: 'app' | 'pages' | 'root') =>
async (page: string) => {
const bundleFile = normalizePagePath(page)
const clientBundlePath = posix.join('pages', bundleFile)
const clientBundlePath = posix.join(pagesType, bundleFile)
const serverBundlePath =
pagesType === 'pages'
? posix.join('pages', bundleFile)
Expand Down

0 comments on commit 3da3df2

Please sign in to comment.