Skip to content

getIsServer

호출된 환경이 서버 환경인지 여부를 반환

arguments

example

ts
const isServer = getIsServer(); // 서버 환경에서 true, 클라이언트 환경에서 false