Check if next.js is running on server or client.
usage:
const isServer = ; if isServer // server code. else // browser code.
const isServer = ; if isServer // server code. else // browser code.
npm i is-next-server
5
1.0.0
MIT