File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
packages/open-next/src/build Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,12 @@ export async function copyTracedFiles({
115
115
} ) ;
116
116
}
117
117
// create directory for pages
118
- if ( existsSync ( path . join ( standaloneServerDir , "pages" ) ) ) {
118
+ if ( existsSync ( path . join ( standaloneNextDir , "server/ pages" ) ) ) {
119
119
mkdirSync ( path . join ( outputNextDir , "server/pages" ) , {
120
120
recursive : true ,
121
121
} ) ;
122
122
}
123
- if ( existsSync ( path . join ( standaloneServerDir , "app" ) ) ) {
123
+ if ( existsSync ( path . join ( standaloneNextDir , "server/ app" ) ) ) {
124
124
mkdirSync ( path . join ( outputNextDir , "server/app" ) , {
125
125
recursive : true ,
126
126
} ) ;
@@ -329,12 +329,7 @@ File ${fullFilePath} does not exist
329
329
if ( hasPageDir ) {
330
330
// First we get truly static files - i.e. pages without getStaticProps
331
331
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 ) ,
338
333
) ;
339
334
// Then we need to get all fallback: true dynamic routes html
340
335
const prerenderManifest = loadPrerenderManifest ( standaloneNextDir ) ;
You can’t perform that action at this time.
0 commit comments