I am building a Blazor application which can switch between client mode and server mode. Parts of the application work only in one or the other and need to have fallback code executed in that case.
Is there a good way to check for example if Mono is running or not?
Any suggestions?
By default, Next. js includes its own server with next start . If you have an existing backend, you can still use it with Next. js (this is not a custom server).
process. browser is deprecated and using typeof window instead will get you in-framework optimizations.
using RuntimeInformation.OSDescription
RuntimeInformation.OSDescription == "web"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With