Skip to content

Commit

Permalink
fix: use public runtime config for DocSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jun 6, 2023
1 parent 84123ec commit 2d0a25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/integrations/docsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineNuxtPlugin(() => {
* If not found, fallback on props.
*/
const options = computed<DocSearchOptions>(() => {
const { algolia } = useRuntimeConfig()
const { algolia } = useRuntimeConfig().public

if (algolia && algolia.docSearch) {
return algolia
Expand Down

0 comments on commit 2d0a25a

Please sign in to comment.