Reference other service variables for the same build
We have 2 apps in a mono repo that get built together everytime a PR is created (and api, and web frontend). The web frontend needs to know what the url of the api service is, and the api service needs to know the URL of the frontend service. These values need to exist as ENV variables. Is this possible? I noticed you can do something like this:
API_URL=https://${{ backend.RAILWAY_PUBLIC_DOMAIN }}
The question is, is that service variable scoped to the same environment (meaning pr branch environment)?Solution:Jump to solution
yes all service variables would only be scoped to the environment the service resides within
3 Replies
Project ID:
54205b43-ca6b-4c89-a842-83e476b6541c
Solution
yes all service variables would only be scoped to the environment the service resides within
Oh dope