Hello,

Can someone put his/her point of view on question given below. Consider nopcommerce version 4.30+
Is it necessary to set ASPNETCORE ENVIRONMENT property or not in web.config ?

My findings, I have 2 websites running on nopCommerce.
Case 1: Where I set ASPNETCORE_ENVIRONMENT= "Production"
Effect: Because of this I can't see view changes without restarting application. 2nd If there is any error like Missing column from database table then user will only able to see general error page "Sorry error occurred"

Case 2: When I dont set value in ASPNETCORE_ENVIRONMENT
Effect: You can see view changes without restarting application. 2nd is, you might see proper error message with complete stacktrace.

I prefer to go with case 1 but what is your opinion on this ? because in nopcommerce 4.30 when we publish website no value set in ASPNETCORE_ENVIRONMENT
i.e It stays in "Development" environment only