ari.pickar
ari.pickar
RRailway
Created by ari.pickar on 2/22/2024 in #✋|help
Railway not passing in env variables
Did some research, seems like I need to prefix them with REACTAPP
10 replies
RRailway
Created by ari.pickar on 2/22/2024 in #✋|help
Railway not passing in env variables
YEah
10 replies
RRailway
Created by ari.pickar on 2/22/2024 in #✋|help
Railway not passing in env variables
And <div> <h2>Login</h2> {error && <p>{error}</p>} <h2>Home Page</h2> <h4>{Running in ${process.env.STAGE}}</h4> </div>
10 replies
RRailway
Created by ari.pickar on 2/22/2024 in #✋|help
Railway not passing in env variables
const baseURL = process.env.NODE_ENV === 'development' ? 'http://localhost:8000' : process.env.API_LOCATION;
10 replies
RRailway
Created by ari.pickar on 11/15/2023 in #✋|help
All api calls in frontend return html saying "enable javascript"
Ok, got it. Thanks!
15 replies
RRailway
Created by ari.pickar on 11/15/2023 in #✋|help
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? @Brody
15 replies
RRailway
Created by ari.pickar on 11/15/2023 in #✋|help
All api calls in frontend return html saying "enable javascript"
Wait I just realized I had overridden that import somewhere, thanks for helping me debug
15 replies
RRailway
Created by ari.pickar on 11/15/2023 in #✋|help
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
RRailway
Created by ari.pickar on 11/15/2023 in #✋|help
All api calls in frontend return html saying "enable javascript"
Gotcha, does that mean changing the url i'm visiting? Or something else? Currently, I'm going to parlaydashboard-production.up.railway.app
15 replies