The app runs in Production because is the default environment. .AddEnvironmentVariables() in Startup doesn't load the environment from ASPNETCORE_ENVIRONMENT and launchSettings.Development.json is never loaded. In order to manage the environment you need to set it in the Settings.xml first and then overwrite it in ApplicationManifest and ApplicationParameters
The app runs in Production because is the default environment. .AddEnvironmentVariables() in Startup doesn't load the environment from ASPNETCORE_ENVIRONMENT and launchSettings.Development.json is never loaded. In order to manage the environment you need to set it in the Settings.xml first and then overwrite it in ApplicationManifest and ApplicationParameters