I have a react app that works pretty well client-side and am now attempting to have it work server-side.
I am using it with the create-react-app boilerplate: https://github.com/facebookincubator/create-react-app
I am running into an issue where I store some environment variables in .env, however on the server I cannot access these variables.
So a line such as axios.get(process.env.API_URL + 'something') will through a 404 because process.env.API_URL is undefined.
It is my understanding that .env is the file I should be using for stuff like this. Am I incorrect? Should I be using another method to store common environment variables? Or is there some way to get the node server to recognize these values?