Added setting to control api endpoint between development and production