File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,7 @@ export async function build(
4747 showWindowsWarning ( ) ;
4848
4949 // Load open-next.config.ts
50- const tempBuildDir = fs . mkdtempSync (
51- path . join ( os . tmpdir ( ) , ".open-next-temp" ) ,
52- ) ;
50+ const tempBuildDir = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "open-next-tmp" ) ) ;
5351 let configPath = compileOpenNextConfigNode (
5452 tempBuildDir ,
5553 openNextConfigPath ,
@@ -176,7 +174,7 @@ function initOutputDir(options: BuildOptions) {
176174 fs . rmSync ( options . outputDir , { recursive : true , force : true } ) ;
177175 const { buildDir } = options ;
178176 fs . mkdirSync ( buildDir , { recursive : true } ) ;
179- fs . renameSync ( options . tempBuildDir , buildDir ) ;
177+ fs . cpSync ( options . tempBuildDir , buildDir , { recursive : true } ) ;
180178}
181179
182180async function createWarmerBundle ( options : BuildOptions ) {
You can’t perform that action at this time.
0 commit comments