@@ -47,11 +47,11 @@ export async function build(
4747 showWindowsWarning ( ) ;
4848
4949 // Load open-next.config.ts
50- const tempConfigDir = fs . mkdtempSync (
50+ const tempBuildDir = fs . mkdtempSync (
5151 path . join ( os . tmpdir ( ) , ".open-next-temp" ) ,
5252 ) ;
5353 let configPath = compileOpenNextConfigNode (
54- tempConfigDir ,
54+ tempBuildDir ,
5555 openNextConfigPath ,
5656 nodeExternals ,
5757 ) ;
@@ -66,10 +66,10 @@ export async function build(
6666 }
6767 validateConfig ( config ) ;
6868
69- compileOpenNextConfigEdge ( tempConfigDir , config , openNextConfigPath ) ;
69+ compileOpenNextConfigEdge ( tempBuildDir , config , openNextConfigPath ) ;
7070
7171 // Initialize options
72- const options = normalizeOptions ( config , tempConfigDir ) ;
72+ const options = normalizeOptions ( config , tempBuildDir ) ;
7373 logger . setLevel ( options . debug ? "debug" : "info" ) ;
7474
7575 // Pre-build validation
@@ -176,8 +176,7 @@ function initOutputDir(options: BuildOptions) {
176176 fs . rmSync ( options . outputDir , { recursive : true , force : true } ) ;
177177 const { buildDir } = options ;
178178 fs . mkdirSync ( buildDir , { recursive : true } ) ;
179- fs . renameSync ( options . tempConfigDir , buildDir ) ;
180- process . exit ( 0 ) ;
179+ fs . renameSync ( options . tempBuildDir , buildDir ) ;
181180}
182181
183182async function createWarmerBundle ( options : BuildOptions ) {
0 commit comments