For a long time now the WFE has generated URLs based on the incoming request rather than a hardcoded BaseURL. BaseURL is no longer set in the prod configs. This also allows factoring out relativeEndpoint into the web package.