An open API service indexing awesome lists of open source software.

https://github.com/aranajhonny/is-next-server

check if next.js is running on server or client.
https://github.com/aranajhonny/is-next-server

javascript nextjs server

Last synced: about 2 months ago
JSON representation

check if next.js is running on server or client.

Awesome Lists containing this project

README

          

#### Check if next.js is running on server or client.

#### usage:

```javascript

const isServer = require("is-next-server");

export default () => (
if (isServer) {
// server code.
} else {
// browser code.
}
)
```