Build hangs after success

When Run nuxt build it seems to hang after it finishes. The last output is:

#13 158.8 [success] [nitro] You can preview this build using node .output/server/index.mjs

If I manually kill the process with CMD+C and run nuxt preview i'm able to run the built app.

The problem is that in the CI environment, it would just hang forever and eventually timeout.

Any idea what is the problem? Can turn on verbose logging to see what exactly is hanging on?
Was this page helpful?