I tried referring the solution suggested on https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-3.1 with the section Set the environment.A