You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The workaround I found is to set ecosystem.config.js script to npm run serve (which just executes node dist/index.js)
but then I lose that info on PM2:
hi, same issue : how to recover the name and version of the package to use is as display it in response to a front-end ?
the "process.env.npm_package_version" displays "undefined" with pm2
What's going wrong?
My app fails to start with pm2, due to package.json env params not loading
Same params are correctly displayed by pm2 show 0:
This is my ecosystem.config.js file:
The workaround I found is to set ecosystem.config.js script to
npm run serve
(which just executes node dist/index.js)but then I lose that info on PM2:
How could we reproduce this issue?
I'm not sure what is causing the issue, but it might be related to my app's folder structure
Just in case, this is my package.json
Supporting information
The text was updated successfully, but these errors were encountered: