@welshare/sdk
    Preparing search index...

    Function resolveEnvironment

    • Resolve the environment configuration based on environment name. When used in backend scenarios, it resolves process.env.VERCEL_TARGET_ENV or falls back to production. Optionally also override the cluster config with your own settings. These env vars also work when used on the server side:

      • NILCHAIN_URL
      • NILAUTH_URL
      • NILDB_NODES

      Parameters

      • OptionalwelshareEnvironment: WelshareApiEnvironment | "production" | "staging" | "preview" | "development"

        the environment to resolve. Can be an environment object for convenient chained calls

      • overrideClusterConfig: Partial<NillionClusterConfig> = {}

        override the cluster config with your own settings

      Returns WelshareApiEnvironment

      WelshareApiEnvironment