I'm publishing my dist folder on DigitalOcean droplet after yarn build:ci but I'm noticing that some process that uses NODE_ENV to check for production is not working, as I was debugging it I saw that process.env.NODE_ENV is getting undefined.
Is that a normal behavior? When build, it should not be replaced with something that doesn't check for process.env anymore because it's running in production without node?
I'm publishing my
dist
folder on DigitalOcean droplet afteryarn build:ci
but I'm noticing that some process that uses NODE_ENV to check for production is not working, as I was debugging it I saw thatprocess.env.NODE_ENV
is gettingundefined
.Is that a normal behavior? When build, it should not be replaced with something that doesn't check for process.env anymore because it's running in production without node?