#Create a frontend preview-branch for my backend preview branch

1 messages · Page 1 of 1 (latest)

true trellis
#

I've got railway setup to create backend preview deployments for new pull requests on each new branch.

I want to automatically also deploy an instance of my frontend that points to this backend preview branch so that I can automatically have a fullstack QA environment for every backend preview branch.

I could deploy the frontend-preview on Vercel or on Railway, but I need to sync the ENV variable for each preview-backend-url to a corresponding frontend deployment environment.

Is this possible?

wispy havenBOT
#

Project ID: 4d55ad1a-cee0-4157-9f60-9ac3cdf593b2

true trellis
#

4d55ad1a-cee0-4157-9f60-9ac3cdf593b2

true trellis
#

Is it possible to access the RAILWAY_STATIC_URL of another deployment in the same Railway project?

#

OK, i got it working using the RAILWAY_ENVIRONMENT variable 🙂

#

Is there a way I can control preview branch triggers? Now that I have both the frontend and backend repo in the project, I'm getting preview branches on both frontend and backend PRs. I only really need this for backend PRs

#

Actually, it's not working properly - when I push a new branch of my backend, I get a new Railway environment and new railway backend deployment as expected, but there's no new automatic frontend deployment within that environment