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({
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 ) ;
You can’t perform that action at this time.
0 commit comments