matchesThisServer | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function matchesThisServer

    • Returns whether an ifWebHare node maches this WebHare installation

      Parameters

      • restrictions: IfWebHare

        Restrictions to check for

      • options: { unsafeEnv?: boolean } = {}

        Options for checking

        • OptionalunsafeEnv?: boolean

          Allow unsafe environment variables to be tested, eg TESTSECRET__. You should only enable this for 'trusted' ifWebHare sources as environment variables may leak information (eg static moduledefinition.ymls are okay, a RPC from a connecting peer server is not)

      Returns boolean

      Whether the node is applicable to this WebHare installation.