Please expose an environment variable for the current custom domain. RENDER_EXTERNAL_URL shows the render URL, not the custom domain that the service is exposed on.