Ian
Ian
RRailway
Created by Ian on 2/24/2024 in #✋|help
How to handle both frontend and backend hosting on Railway?
Sweet, I'll check that one out. Thank you!
14 replies
RRailway
Created by Ian on 2/24/2024 in #✋|help
How to handle both frontend and backend hosting on Railway?
At the moment yes, but will be moving to Vite
14 replies
RRailway
Created by Ian on 2/24/2024 in #✋|help
How to handle both frontend and backend hosting on Railway?
Thanks for your advice btw
14 replies
RRailway
Created by Ian on 2/24/2024 in #✋|help
How to handle both frontend and backend hosting on Railway?
Fair point, I might bight the bullet and switch -- as with all infrastructure/architecture decisions it seems there is not "right" answer. I haven't thought about how to have railway deploy the React.js site(it's pure react not Next). If using Caddy, could just have any attached volume that stores the "compiled" static assets vs another container with a small web server. Unless you have a better idea 😛
14 replies
RRailway
Created by Ian on 2/24/2024 in #✋|help
How to handle both frontend and backend hosting on Railway?
Nothing in general and I thought about it because I could easily do it with my configuration that I already have. Partially, I have existing code that depends on the other structure. In addition, it makes the API on a different domain, which can get a little messy with auth etc. It also seems that the "general" best practice is to keep them on the same domain.
14 replies
RRailway
Created by Ian on 2/24/2024 in #✋|help
How to handle both frontend and backend hosting on Railway?
N/A
14 replies