Santiago Baron
Santiago Baron
RRailway
Created by CiaranSweet on 1/6/2024 in #✋|help
Private networking with Railway generated ports
Got it, I'll try it
87 replies
RRailway
Created by CiaranSweet on 1/6/2024 in #✋|help
Private networking with Railway generated ports
And it can be any port or is there any guide regarding that?
87 replies
RRailway
Created by CiaranSweet on 1/6/2024 in #✋|help
Private networking with Railway generated ports
No description
87 replies
RRailway
Created by CiaranSweet on 1/6/2024 in #✋|help
Private networking with Railway generated ports
I tried to do that but in my variables I can't find the port
87 replies
RRailway
Created by CiaranSweet on 1/6/2024 in #✋|help
Private networking with Railway generated ports
I'm not exactly using client side, I'm doing it with Nextjs and I make these requests using server side
87 replies
RRailway
Created by CiaranSweet on 1/6/2024 in #✋|help
Private networking with Railway generated ports
And my code is this:
export const getStrapiURL = () => {

if (process.env.NODE_ENV === 'production') {
return 'https://espectrosoft-backend.railway.internal'
}

if (process.env.NODE_ENV === 'development') {
return 'http://localhost:1337';
}
}
export const getStrapiURL = () => {

if (process.env.NODE_ENV === 'production') {
return 'https://espectrosoft-backend.railway.internal'
}

if (process.env.NODE_ENV === 'development') {
return 'http://localhost:1337';
}
}
87 replies
RRailway
Created by CiaranSweet on 1/6/2024 in #✋|help
Private networking with Railway generated ports
No description
87 replies