Here is a handy class that you can use in Blazor to determine if you are executing client-side or server-side. Its included in Blazor-State