Files
docs/apps/bot-docs/lib/hanzo/client.ts
zooqueen 28e904a4f8 feat: use pk-hanzo-docs-search-2026 publishable key for browser search
Set real IAM publishable key as fallback in both docs and bot-docs
search clients. Add bot-docs search index generation script.
2026-03-02 12:50:13 -08:00

18 lines
595 B
TypeScript

export const searchEndpoint =
process.env.NEXT_PUBLIC_HANZO_SEARCH_ENDPOINT ??
'https://cloud-api.hanzo.ai/api/search-docs?store=bot-docs';
export const indexEndpoint =
process.env.HANZO_SEARCH_INDEX_ENDPOINT ??
'https://cloud-api.hanzo.ai/api/index-docs?store=bot-docs';
export const chatEndpoint =
process.env.NEXT_PUBLIC_HANZO_CHAT_ENDPOINT ??
'https://cloud-api.hanzo.ai/api/chat-docs?store=bot-docs';
export const publishableKey =
process.env.NEXT_PUBLIC_HANZO_SEARCH_KEY ?? 'pk-hanzo-docs-search-2026';
export const adminKey =
process.env.HANZO_SEARCH_ADMIN_KEY ?? '';