Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
SoumyaSubhrajit opened this issue Apr 25, 2023 · 1 comment

Comments

@SoumyaSubhrajit
Copy link

SoumyaSubhrajit commented Apr 25, 2023

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.

@Muhammad0320
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants