I\'m getting the following error using SSR
The issue is on the c
My solution is to use a middleware like express-useragent to detect the browser user agent. Then, in the server side, create a Then, it is still somehow a responsive design in SSR.Warning: Expected server HTML to contain a matching
viewsize like {width, height} by the following rulesif (ua.isMobile) {
return {width: 360, height: 480}
}
if (ua.isDesktop) {
return {width: 768, height: 600}
}
return {width: 360, height: 480} // default, and for bot