Skip to content

Commit 2d0a25a

Browse files
committed
fix: use public runtime config for DocSearch
1 parent 84123ec commit 2d0a25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/integrations/docsearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default defineNuxtPlugin(() => {
2020
* If not found, fallback on props.
2121
*/
2222
const options = computed<DocSearchOptions>(() => {
23-
const { algolia } = useRuntimeConfig()
23+
const { algolia } = useRuntimeConfig().public
2424

2525
if (algolia && algolia.docSearch) {
2626
return algolia

0 commit comments

Comments
 (0)