Skip to content

Commit 4480078

Browse files
author
Yuan Huang
committed
fix: force process.exit(0) after webpack build to prevent Node.js 20 hang
webpack 3.12.0 leaves open handles (internal timers/fs watchers) under Node.js 20, causing the process to never exit naturally after a successful build. The container hangs, docker run waits forever, and the InfraBox job hits the 1-hour timeout. The failure path already calls process.exit(1) explicitly; mirror that for the success path with process.exit(0). Root cause introduced by 34ade8f (node:8.9 -> node:20-alpine upgrade).
1 parent e0c29f2 commit 4480078

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/dashboard-client/build/build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
3737
' Tip: built files are meant to be served over an HTTP server.\n' +
3838
' Opening index.html over file:// won\'t work.\n'
3939
))
40+
process.exit(0)
4041
})
4142
})

0 commit comments

Comments
 (0)