Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change manifestPath to pagesManifestPath #59657

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,11 @@ export default async function build(
const outputFileTracingRoot =
config.experimental.outputFileTracingRoot || dir

const manifestPath = path.join(distDir, SERVER_DIRECTORY, PAGES_MANIFEST)
const pagesManifestPath = path.join(
distDir,
SERVER_DIRECTORY,
PAGES_MANIFEST
)

const { incrementalCacheHandlerPath } = config.experimental

Expand Down Expand Up @@ -977,7 +981,7 @@ export default async function build(
relativeAppDir: path.relative(outputFileTracingRoot, dir),
files: [
ROUTES_MANIFEST,
path.relative(distDir, manifestPath),
path.relative(distDir, pagesManifestPath),
BUILD_MANIFEST,
PRERENDER_MANIFEST,
PRERENDER_MANIFEST.replace(/\.json$/, '.js'),
Expand Down Expand Up @@ -1203,7 +1207,7 @@ export default async function build(
const appDefaultConfigs = new Map<string, AppConfig>()
const pageInfos = new Map<string, PageInfo>()
const pagesManifest = JSON.parse(
await fs.readFile(manifestPath, 'utf8')
await fs.readFile(pagesManifestPath, 'utf8')
) as PagesManifest
const buildManifest = JSON.parse(
await fs.readFile(buildManifestPath, 'utf8')
Expand Down Expand Up @@ -2778,7 +2782,7 @@ export default async function build(
// remove temporary export folder
await fs.rm(exportOptions.outdir, { recursive: true, force: true })
await fs.writeFile(
manifestPath,
pagesManifestPath,
formatManifest(pagesManifest),
'utf8'
)
Expand Down