Skip to content

We should support passing an array of string for the hosts options #1188

@redox

Description

@redox

I think we should either support or throw an exception when using an array of string for the hosts option:

const searchClient = algoliasearch("", "", {
  hosts: ["test.com"]
});

instead of

const searchClient = algoliasearch("", "", {
  hosts: [{ url: "test.com/sitesearch" }]
});

Today it's creating a weird "undefined" domain.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions