I need to know Environment (Production/Development) in Blazor Component which is done through injecting IWebAssemblyHostEnvironment
but when it run in Prerendering it gives me error that the sevices do not exists in Services. On other side we can get Environment through IWebHostEnvironment
in Server Host which works in prerendering but give error in case of web assembly host (In Browser). Is there any services which work for both of Web Assembly Host (Browser) and Web Server Host (Server) or any other approach which we could conditionally base on server or web assembly host inject the right service to Blazor Component?
Thanks
