Circle V2 API Docs
    Preparing search index...

    Function isHubReadingEnv

    • PR previews don't read the hub — they share one :staging tag, so they would show main's prompt instead of the branch's. dev-v2 is preview-TYPE too, so VERCEL_TARGET_ENV rather than VERCEL_ENV is what tells them apart.

      Parameters

      • vercelEnv: string | undefined
      • targetEnv: string | undefined

      Returns boolean