ari.pickar
Railway not passing in env variables
const baseURL = process.env.NODE_ENV === 'development' ? 'http://localhost:8000' : process.env.API_LOCATION;
10 replies
All api calls in frontend return html saying "enable javascript"
Actually not quite. It seems like trying to call the internal network over http
http://parlaybackend.railway.internal
is being prevented due to no certificate. Do I need an https certificate for my backend for requests inside railway? Or is that something that I should use the public facing url? @Brody15 replies
All api calls in frontend return html saying "enable javascript"
So going to the base url works but going to parlaydashboard-production.up.railway.app/users or any other url in the path seems to be making calls to the frontend, but I have axios set up to be making calls to the other service I have deployed like this.
const baseURL = process.env.NODE_ENV === 'development' ? 'http://localhost:8000' : "http://parlaybackend.railway.internal"
const axiosInstance = axios.create({
baseURL: baseURL
});
Since the NODE_ENV is "production", shouldn't it be making calls to the internal backend url?15 replies