I’d like to use Preview Environments to spin up a full application cluster for each PR.
I’d like my frontend service to know the host name of the backend service, so they can send API requests to the correct service.
I have a render.yaml like this (abbreviated):
previewsEnabled: true services: - name: frontend type: web env: static pullRequestPreviewsEnabled: true envVars: - key: BACKEND_HOST fromService: name: backend type: web property: host - name: backend type: web env: node pullRequestPreviewsEnabled: true
However, the BACKEND_HOST env variable shows up as my normal staging one, not the one with
-pr-123 at the end.
Am I doing something wrong? Is this possible?