From 0e05018e36829f0eefceb1dc753627331c9a61ea Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Sun, 30 Nov 2025 00:36:03 -0600 Subject: [PATCH 1/2] remove unused orama constants --- apps/site/next.constants.mjs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/apps/site/next.constants.mjs b/apps/site/next.constants.mjs index 8a8e9ec4196cb..d079cea22edfc 100644 --- a/apps/site/next.constants.mjs +++ b/apps/site/next.constants.mjs @@ -130,27 +130,11 @@ export const DEFAULT_ORAMA_QUERY_PARAMS = { }, }; -/** - * The initial Orama Cloud chat suggestions visible in the empty state of the search box. - */ -export const DEFAULT_ORAMA_SUGGESTIONS = [ - 'How to install Node.js?', - 'How to create an HTTP server?', - 'Upgrading Node.js version', -]; - /** * The default batch size to use when syncing Orama Cloud */ export const ORAMA_SYNC_BATCH_SIZE = 250; -/** - * The default Orama Cloud endpoint to use when searching with Orama Cloud. - */ -export const ORAMA_CLOUD_ENDPOINT = - process.env.NEXT_PUBLIC_ORAMA_ENDPOINT || - 'https://cloud.orama.run/v1/indexes/nodejs-org-dev-hhqrzv'; - /** * The default Orama Cloud API Key to use when searching with Orama Cloud. * This is a public API key and can be shared publicly on the frontend. @@ -159,13 +143,6 @@ export const ORAMA_CLOUD_READ_API_KEY = process.env.NEXT_PUBLIC_NEW_ORAMA_API_KEY || 'c1__KPYDQNEFr$nFgrTgFTVLHf8BuNf08COBqBUzk65AYJEmSsJONPsO$_cihl'; -/** - * The default Orama Cloud Datasource ID to use when searching with Orama Cloud. - */ -export const ORAMA_CLOUD_DATASOURCE_ID = - process.env.NEXT_PUBLIC_NEW_ORAMA_DATASOURCE_ID || - '6044121f-53c3-46af-aaf0-f498e3c548f2'; - /** * The default Orama Cloud Project ID to use when initializing Orama Cloud. */ From 4adacbe4461bc204eebeb10df0ec065eddd7f79a Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Sun, 30 Nov 2025 02:07:48 -0600 Subject: [PATCH 2/2] add safer keys to suggestions --- .../ui-components/src/Common/Search/Suggestions/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/ui-components/src/Common/Search/Suggestions/index.tsx b/packages/ui-components/src/Common/Search/Suggestions/index.tsx index 456bd052d9aa2..b7cda77bda76a 100644 --- a/packages/ui-components/src/Common/Search/Suggestions/index.tsx +++ b/packages/ui-components/src/Common/Search/Suggestions/index.tsx @@ -18,8 +18,12 @@ const SearchSuggestions: FC = ({ {label &&

{label}

} {suggestions.map((suggestion, i) => ( - - + + {suggestion} ))}