Hi,
I changed a env var from a static site which depends on another service in the render.yaml file, but it didnt got updated. Did I something wrong or is this a issue?
from
envVars:
- key: NEXT_PUBLIC_API_URL
fromService:
type: web
name: fc-api
property: host
to
envVars:
- key: NEXT_PUBLIC_API_URL
fromService:
type: web
name: fc-api
envVarKey: RENDER_EXTERNAL_URL
Hello! It seems like your YAML sync failed because it couldn’t find an Environment Variable with the name RENDER_EXTERNAL_URL
in your fc-api
service. Otherwise, that formatting seems correct, as long as you replace envVarKey
's value with the key of an environment variable that exists on your service.
Thank you for your fast reply. But shouldnt be RENDER_EXTERNAL_URL available in every static site or web service, because its provided from the render runtime.
Or how do I get the env var RENDER_EXTERNAL_URL from another service in the same config?
That’s a great point, actually, and I should have mentioned that earlier. It’s a current limitation of our YAML system that you can’t reference RENDER_*
env vars in the fromService
section. This is something we’re currently working on fixing.