How to pass or use process.env variables from node to reaction? For example, I have this
const nodeEnv = process.env.NODE_ENV || 'development'
in my development, and it works (I think, because it is developing, and I have a backup 'development' .
But when we push it to our intermediate server and set the variable NODE_ENV , it only works on the first boot, but subsequently it is not. I think I get this because it is first served by node and it has access to server variables, but subsequently it will respond to pages (right?), And it will not have access to server materials. So, how do I get variables for a reaction without hard coding (because in the end we will have a different set for production)?
EDIT. We also use webpack if that matters.
source share