Set API url based on configuration environment.
Set API url based on configuration environment.