So I have a NextJS app and have set up a environment variable for the API I will be calling (also hosted on railway).
In my component, I am trying to access this environment variable called API_URL as such:
const apiURL = process.env.API_URL
const queryURL = apiURL + '/trips'
console.log(queryURL)
However, in my console on Chrome, it prints: undefined/trips/
How can I properly access env variables on railway?