Skip to content

isServer

Size
0.07 kb
View source

Indicates whether or not the code is running on the server.

import { isServer } from 'crustack/utils'
if (isServer) {
// the code is running on the server
} else {
// the code is running on the client
}