We’re getting CORS errors in the Broswer console on PR preview instances saying that our apollo client is configured with https://ourapp.app/api.
I did some tests in the node repl via the shell, and the output looks fine, which is leading me to conclude that the process.env.IS_PULL_REQUEST is evaluating to 'false' when the app is being built inside Docker.
Environment variables are passed in as build-args for Docker environments. You will need to set the value in your Dockerfile with ARG/ENV in order to use it in the build context.
If you could share a specific example of the issue you are experiencing that may help us troubleshoot it with you, e.g. any logs/errors/output, service name/ID, reproduction steps, etc.
As this is a very old post, it might be better to start a new topic that info. Alternatively, if you don’t want to share those details on the community forum, please feel free to raise a ticket with support@render.com