Conditionalize baseUrl.