is-next-server
v1.0.0
Published
check if next.js is running on server or client.
Downloads
13
Maintainers
Readme
Check if next.js is running on server or client.
usage:
const isServer = require("is-next-server");
export default () => (
if (isServer) {
// server code.
} else {
// browser code.
}
)