Skip to content

Commit 9777a0f

Browse files
committed
Algolia - Add userCookie for userToken
1 parent 7d6c22d commit 9777a0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ module.exports = {
271271
indexName: 'crawler_sumodocs',
272272
contextualSearch: false,
273273
insights: true,
274+
insightsConfig: {
275+
useCookie: true, // writes the _ALGOLIA cookie // cookieDuration: 15552000000, // 6 months – optional
276+
},
277+
// or is the config just useCookie: true, ?
274278
},
275279
prism: {
276280
theme: lightCodeTheme,

0 commit comments

Comments
 (0)