I tried the following but it doesn't work:
console.log(process.env.BASE_URL); #output: undefined
Say my heroku app's host name is: https://RyanCameron-app.herokuapp.com
How should I go about getting that base_url on heroku?
I am looking for a solution to avoid to respectively uncomment/comment out the following lines:
const url = 'https://RyanCameron-app.herokuapp.com/projects/eovendo' //production
//const url = 'http://localhost:3000' //development
It has become quite annoying ..