bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.78k stars 1.32k forks source link

After yarn build:ci on ci process.env.NODE_ENV return undefined #176

Closed marceloavf closed 4 years ago

marceloavf commented 4 years ago

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?

marceloavf commented 4 years ago

I saw that I misunderstood it, it's build a qe variable as true, which is production as true image