I have the same request, tried various compiler directives but they can't operate on Blazor @attribute. The only way I was able to avoid authorization was to comment out the:
@* @attribute [Authorize(Policy = aClaim)] *@
Which means I have to make sure I remember to uncomment before I push to Git repo and/or test/production environments. Definitely NOT ideal.
Another approach is to change the AD settings in appSettings.json and point to different path and I would still need to build user claims locally.