how to ref domain from another service?
need to get a specific domain from a service in my project into a variable called
CORS_ORIGIN
. I know that I can use the RAILWAY_SERVICE_*SERVICE_NAME*_URL
but i need to use the CORS_ORIGIN
instead, is there any ${{ }}
variable that can help me do that?.15 Replies
Project ID:
N/A
N/A
something like this?
yep, that works?
yep!
will try it out, give me a minute
im guessing its only available at runtime?
no, you can reference the domain at the service level
so it would appear at build time?
yes it would be available at build time
just because im getting some errors with a env validator that i've and im guessing that i would need to move it to runtime
hmmmm
are you building with a dockerfile?
yep,
arg
and env
then?