MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / searchClient

Function searchClient

apps/web/utilities/typesenseClient.ts:25–34  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

23);
24
25export const searchClient = (apiKey: string) => {
26 typesenseInstantsearchAdapter.updateConfiguration({
27 ...defaultConfiguration,
28 server: {
29 ...defaultConfiguration.server,
30 apiKey,
31 },
32 });
33 return typesenseInstantsearchAdapter.searchClient;
34};
35
36function isProd() {
37 return process.env.NODE_ENV === 'production';

Callers 1

TypesenseSearchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected