Skip to content

Commit

Permalink
bump search dependency and use default config (getsentry#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron McEfee authored Apr 30, 2021
1 parent 778588e commit 7c89032
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@emotion/styled": "^10.0.27",
"@mdx-js/mdx": "^1.6.1",
"@mdx-js/react": "^1.6.1",
"@sentry-internal/global-search": "0.0.41",
"@sentry-internal/global-search": "0.0.42",
"@sentry/gatsby": "^5.27.0",
"@sentry/tracing": "^5.27.0",
"@sentry/webpack-plugin": "^1.13.0",
Expand Down
8 changes: 0 additions & 8 deletions src/utils/algolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ const flatten = (arr: any[]) =>
title: context.title,
section: context.title,
url: path,
// Do not remove until the global lib is in sentry. Removing will break sentry.
content: context.excerpt,
text: context.excerpt,
pathSegments: extrapolate(path, "/").map(x => `/${x}/`),
keywords: context.keywords || [],
Expand All @@ -55,12 +53,6 @@ export default [
indexName: `${indexPrefix}docs`,
settings: {
...sentryAlgoliaIndexSettings,

// Do not remove until the global lib is in sentry
attributesToSnippet: [`content:15`, `text:15`],
searchableAttributes: ["section", "title", "content", "text"],
attributesToHighlight: ["section", "title", "content"],
attributesToRetrieve: ["section", "title", "content", "text", "url"],
},
},
];
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2327,10 +2327,10 @@
lodash "^4.17.15"
lodash-es "^4.17.15"

"@sentry-internal/[email protected].41":
version "0.0.41"
resolved "https://registry.yarnpkg.com/@sentry-internal/global-search/-/global-search-0.0.41.tgz#869c5c41a5b39347ae70e8d2dcbbe72cee150d93"
integrity sha512-4gz/T51TANempWLWXnfxbUqnktAtYHpNSMB5A8sgsJRv8/RkwEpa6neQZ57Fey3UyUu2mpdtaAIkYpDDjihavw==
"@sentry-internal/[email protected].42":
version "0.0.42"
resolved "https://registry.yarnpkg.com/@sentry-internal/global-search/-/global-search-0.0.42.tgz#c583376045cd62e68cc7fa0ba74097f4880d6b20"
integrity sha512-+jNVT74lmubEet5SsCXxJyx9yflYHnmNPMzIHEamU70CleqwQHHoz1O/GSgzZ/YpRAfwejLUJA7+BpSHGJyWFg==
dependencies:
"@types/dompurify" "^2.0.4"
"@types/react" ">=16"
Expand Down

0 comments on commit 7c89032

Please sign in to comment.