Websites v4 docs v5.2.4
    Preparing search index...

    Function extractSubdomain

    • Extracts the subdomain from a host domain.

      Eg.

      https://foo-bar.agent.homeflow.co.uk -> foo-bar
      ww.foo-bar-baz.com -> foo-bar-baz

      Parameters

      • url: string

      Returns string | null