From 9777a0f826dba14243ff5c587cdb417b75fdb7ad Mon Sep 17 00:00:00 2001 From: Kim Pohas Date: Mon, 14 Jul 2025 22:46:27 -0400 Subject: [PATCH 1/2] Algolia - Add userCookie for userToken --- docusaurus.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index 0752a077bb..bb2f40bb7e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -271,6 +271,10 @@ module.exports = { indexName: 'crawler_sumodocs', contextualSearch: false, insights: true, + insightsConfig: { + useCookie: true, // writes the _ALGOLIA cookie // cookieDuration: 15552000000, // 6 months – optional + }, + // or is the config just useCookie: true, ? }, prism: { theme: lightCodeTheme, From d3af258576360786568fa7df39ce20308bfeb918 Mon Sep 17 00:00:00 2001 From: Kim Pohas Date: Fri, 18 Jul 2025 01:03:39 -0400 Subject: [PATCH 2/2] DOCS-988 - Add useCookie Algolia flag to docusaurus config --- docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index bb2f40bb7e..85a4e61f14 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -272,9 +272,9 @@ module.exports = { contextualSearch: false, insights: true, insightsConfig: { - useCookie: true, // writes the _ALGOLIA cookie // cookieDuration: 15552000000, // 6 months – optional + useCookie: true, // alt to useCookie: true, }, - // or is the config just useCookie: true, ? + useCookie: true, // alt to insightsConfig: {useCookie: true,}, }, prism: { theme: lightCodeTheme,