Invalid Nuxt package.json NODE_ENV setting

current Nuxt projects need to be published to different environments
corresponding to

clipboard.png

but the value obtained through process.env.NODE_ENV is not the value assigned here
but production
what is the reason for this? How can I get the desired results?

Feb.28,2021

I solved this problem
because I can read the value of this NODE_ENV in build, but change it to production, in project start, which may be made by nuxt
, so when packing, you can make a decision

.
Menu