Do you need to explicitly set NODE_ENV=production?
Surprisingly this wasnt answered in any of the forums ive seen here. I wonder if it is essential to set this environment variable in NodeJS?
Ive seen that railway provides this variable in the form of RAILWAY_ENVIRONMENT=production. Will NodeJS use this variable and know if it is in production mode?
3 Replies