Skip to content

Commit 42da2d9

Browse files
authored
minor cleanup (#795)
1 parent 039b348 commit 42da2d9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/open-next/src/build/copyTracedFiles.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ export async function copyTracedFiles({
115115
});
116116
}
117117
// create directory for pages
118-
if (existsSync(path.join(standaloneServerDir, "pages"))) {
118+
if (existsSync(path.join(standaloneNextDir, "server/pages"))) {
119119
mkdirSync(path.join(outputNextDir, "server/pages"), {
120120
recursive: true,
121121
});
122122
}
123-
if (existsSync(path.join(standaloneServerDir, "app"))) {
123+
if (existsSync(path.join(standaloneNextDir, "server/app"))) {
124124
mkdirSync(path.join(outputNextDir, "server/app"), {
125125
recursive: true,
126126
});
@@ -329,12 +329,7 @@ File ${fullFilePath} does not exist
329329
if (hasPageDir) {
330330
// First we get truly static files - i.e. pages without getStaticProps
331331
const staticFiles: Array<string> = Object.values(
332-
JSON.parse(
333-
readFileSync(
334-
path.join(standaloneServerDir, "pages-manifest.json"),
335-
"utf8",
336-
),
337-
),
332+
loadPagesManifest(standaloneNextDir),
338333
);
339334
// Then we need to get all fallback: true dynamic routes html
340335
const prerenderManifest = loadPrerenderManifest(standaloneNextDir);

0 commit comments

Comments
 (0)