diff --git a/bin/next-export b/bin/next-export index c9ac30b3..06d825b7 100755 --- a/bin/next-export +++ b/bin/next-export @@ -57,6 +57,10 @@ const options = { outdir: argv.outdir ? resolve(argv.outdir) : resolve(dir, 'out') } -exportApp(dir, options).catch((err) => { - printAndExit(err) -}) +exportApp(dir, options) + .then(() => { + printAndExit('Export successful', 0) + }) + .catch((err) => { + printAndExit(err) + })