R
Railway15mo ago
xgloser

Monorepo deployment help - react frontend + express backend

Hey, I just want to preface this by saying this is my first time using react and node/express and also first time deploying an app so I may not use the correct wording while trying to explain whats going on. I built my app using npm workspaces to create a simple monorepo. So the structure is a packages.json file in the root directory and then my app and server in separate folders. I've managed to build and deploy however, I can't see my frontend site (the react app), instead I'm seeing my server https://boston-production.up.railway.app If anyone has any advice or can help, that would be amazing. Cheers, Casey
3 Replies
Percy
Percy15mo ago
Project ID: baf90bc1-8862-446b-b6ea-2d814cfee175
xgloser
xgloser15mo ago
baf90bc1-8862-446b-b6ea-2d814cfee175
fad
fad15mo ago
I think you'll want to deploy two services using the same repository but with different start commands (i.e. one starts the backend service and another to start the frontend)
Want results from more Discord servers?
Add your server