PM2 starts but immediately shows 'errored' status for all clusters.
I saw from community that I need to run by using 'next start' directly, but as I need to use .env files, I used env-cmd.
of course, I can run single instance by executing script manually from the command line
What's going wrong?
PM2 starts but immediately shows 'errored' status for all clusters. I saw from community that I need to run by using 'next start' directly, but as I need to use .env files, I used env-cmd. of course, I can run single instance by executing script manually from the command line
ecosystem.config.js
result
I can run with fork mode though, it causes lots of instances needed to run and maintain our service.
How could we reproduce this issue?
just run the script above
Supporting information
NextJS 14.1.0 NodeJS 18.18.2 PM2 5.3.0