File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import { track } from "~/util/zaraz" ;
22import type { DocSearchClientOptions } from "@astrojs/starlight-docsearch" ;
33
4+ const isStyleGuide = window . location . pathname . startsWith ( "/style-guide/" ) ;
5+
46export default {
57 appId : "D32WIYFTUF" ,
68 apiKey : "5cec275adc19dd3bc17617f7d9cf312a" ,
7- indexName : window . location . pathname . startsWith ( "/style-guide/" )
8- ? "prod_devdocs_styleguide"
9- : "prod_devdocs" ,
9+ indexName : isStyleGuide ? "prod_devdocs_styleguide" : "prod_devdocs" ,
1010 insights : true ,
1111 // Replace URL with the current origin so search
1212 // can be used in local development and previews.
@@ -22,6 +22,10 @@ export default {
2222 } ) ;
2323 } ,
2424 resultsFooterComponent ( { state } ) {
25+ if ( isStyleGuide ) {
26+ return null ;
27+ }
28+
2529 return {
2630 type : "a" ,
2731 ref : undefined ,
You can’t perform that action at this time.
0 commit comments