Hi @albert, although this is fine, the links still don't provide the clue to my issue.
In my scenario mentioned, I am running my code in Debug mode, but I set the environment to ASPNETCORE_ENVIRONMENT=Production
yet the check is still being performed, which according to the tickets should not be the case.
Is there possibly any update on this?