mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fixes [this issue](https://github.com/zeit/next.js/issues/4747) I don't know what is the reason why the process does not finish, because it can be reproduced in this repo in many environments (my local mac os and Netlify pipeline). However, it fixes the problem and it's 100% safe.
This commit is contained in:
parent
6f4925c193
commit
6e5bab1a1d
|
@ -57,6 +57,10 @@ const options = {
|
|||
outdir: argv.outdir ? resolve(argv.outdir) : resolve(dir, 'out')
|
||||
}
|
||||
|
||||
exportApp(dir, options).catch((err) => {
|
||||
exportApp(dir, options)
|
||||
.then(() => {
|
||||
printAndExit('Export successful', 0)
|
||||
})
|
||||
.catch((err) => {
|
||||
printAndExit(err)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue