sample next.js project to demo npm package react-device-detect fails on SSR

You can run this project using

yarn run dev

or using GitPod without installing jack

You can run this project using GitPod or paste this link https://gitpod.io/#https://github.com/czco/next-isMobile-ssr in your address bar.

In output you will see

{
  "isSSR": true,
  "nativeIsMobile": true,
  "rddIsMobile": false,
  "url": {
    "query": {},
    "pathname": "/",
    "asPath": "/"
  }
}