React and Django REST Framework

Project ID: N/A Quick query before I start working on something. I have deployed a React frontend with a Pocketbase API before on Railway, but i had to deploy so separate projects then axios to the API url How do I deploy DRF and React (separate repos) to the same Railway project and get them talking to each other?
Solution:
I'm assuming this is a client side rendered frontend, theres no performance hit to them being in different projects, that's just not how you're meant to use Railway though.
Jump to solution
7 Replies
Percy
Percy2w ago
Project ID: N/A
TheJoker
TheJokerOP2w ago
N/A
Brody
Brody2w ago
like this - https://docs.railway.app/tutorials/deploying-a-monorepo then just have the frontend call the backends public domain.
TheJoker
TheJokerOP2w ago
cheers Brody I guess having separate projects is detrimental to performance? I mean it 'works'....
Solution
Brody
Brody2w ago
I'm assuming this is a client side rendered frontend, theres no performance hit to them being in different projects, that's just not how you're meant to use Railway though.
TheJoker
TheJokerOP2w ago
Yea. Ok cheers for the links
Want results from more Discord servers?
Add your server