complete-node-bootcamp icon indicating copy to clipboard operation
complete-node-bootcamp copied to clipboard

UNABLE TO SET THE STAT:PROD : "SET NODE_ENV=PRODUCTION" IT'S NOT WORKING INTERNALLY.

Open SoumyaSubhrajit opened this issue 2 years ago • 1 comments

package json - starter - Visual Studio Code 25-04-2023 16_44_43 As I mentation when I set the "start:prod": " set NODE_ENV=production && nodemon server.js", the server starts as production but internally I guess it's not setting NODE_DEV as production, when I send the request as production loading times go to infinite and failed, but when I set NODE_DEV = production manually it works, I don't what's happing but I try to figure it out from my side if you have any knowledge let me know.

SoumyaSubhrajit avatar Apr 25 '23 11:04 SoumyaSubhrajit

you have to download cross env package and add it in front

Muhammad0320 avatar Aug 25 '23 07:08 Muhammad0320