File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,11 @@ async function resolveOptions (sourceDir) {
120
120
)
121
121
122
122
// resolve algolia
123
+ const themeConfig = siteConfig . themeConfig || { }
123
124
const isAlgoliaSearch = (
124
- siteConfig . themeConfig . algolia ||
125
- Object . keys ( siteConfig . locales && siteConfig . themeConfig && siteConfig . themeConfig . locales || { } )
126
- . some ( base => siteConfig . themeConfig . locales [ base ] . algolia )
125
+ themeConfig . algolia ||
126
+ Object . keys ( siteConfig . locales && themeConfig . locales || { } )
127
+ . some ( base => themeConfig . locales [ base ] . algolia )
127
128
)
128
129
129
130
const options = {
@@ -218,7 +219,7 @@ async function resolveOptions (sourceDir) {
218
219
description : siteConfig . description || '' ,
219
220
base : siteConfig . base || '/' ,
220
221
pages : pagesData ,
221
- themeConfig : siteConfig . themeConfig || { } ,
222
+ themeConfig,
222
223
locales : siteConfig . locales
223
224
}
224
225
You can’t perform that action at this time.
0 commit comments