isServer
Size
0.07 kb
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}
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}