Unverified Commit 3da3df23 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

Fix client entry point prefix (#38445)

client prefix should depend on the pages type
parent 979da913
...@@ -303,7 +303,7 @@ export async function createEntrypoints(params: CreateEntrypointsParams) { ...@@ -303,7 +303,7 @@ export async function createEntrypoints(params: CreateEntrypointsParams) {
(mappings: Record<string, string>, pagesType: 'app' | 'pages' | 'root') => (mappings: Record<string, string>, pagesType: 'app' | 'pages' | 'root') =>
async (page: string) => { async (page: string) => {
const bundleFile = normalizePagePath(page) const bundleFile = normalizePagePath(page)
const clientBundlePath = posix.join('pages', bundleFile) const clientBundlePath = posix.join(pagesType, bundleFile)
const serverBundlePath = const serverBundlePath =
pagesType === 'pages' pagesType === 'pages'
? posix.join('pages', bundleFile) ? posix.join('pages', bundleFile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment