Fix apiEndpoint for production environment