I assume you are referring to .NET core applications; if so you can use appsettings.Development.json for local dev
var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", false, true)
.AddEnvironmentVariables();
if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == Environments.Development)
{
builder.AddJsonFile("appsettings.Development.json");
}