I made a website using Razor page. I know how to change the environment between Development and Production in my local development machine. However, it seem that after publishing and deploying the release to production server, the ASPNETCORE_ENVIRONMENT variable is ignored. Is there any easy way to change the environment globally and specific to a website in server?
Asked
Active
Viewed 60 times
0
-
Maybe you can refer to the [link](https://stackoverflow.com/questions/41546943/how-to-set-aspnetcore-environment-to-be-considered-for-publishing-an-asp-net-cor),and check if the solutions can work. – Yiyi You Jan 21 '22 at 03:56