@sensimods/utility-lab
    Preparing search index...

    Function isServer

    • Checks if the code is currently running on the server. Useful for guarding Node-specific logic in Next.js.

      Returns boolean

      true if running on the server, false otherwise.

      if (isServer()) {
      console.log("This code is running on the server!");
      }