I work with a team of 4 and I'm the only Mac user and my peers are using Windows machine. My team members (Windows users) use the following which was not working on my Mac machine:
"start": "set \"NODE_ENV=prod\" && node index.js"
And when I tried to print process.env.NODE_ENV
in log it returned undefined
.
Then after browsing, I used the following on my Mac and it was working fine:
"start: "export NODE_ENV=prod && node index.js"
Now if I commit my code in repository they will be affected.
Is there any common solution which can be used to get rid of this platform issue?
Thanks in advance.