React Dev Production Server Url Neatly Set Up【10 USD 1 Day】

Job ID: 39689634

Budget: $10 – $30 USD

In the app, http is a wrapper of axios. I want to fetch data as below:
const { data } = await http.get("/Lesson/");

const settings = {
dev: {
server: 'https://localhost:7003/api'
},
prod: {
server: 'https://something.com/api'
}
}

const getServer = () => {
return settings.dev;
}

ASP.NET Core API backend is set up good.

I want neat way to switch between dev and prod server without using apisauce package.
Related categories: JavaScript React.js