Skip to content

Conversation

@arashsheyda
Copy link
Member

closes #680

const list = await import('../data/nuxt-docs.json').then(i => i.default)
const list = await $fetch<any[]>('https://nuxt.com/api/search.json', {
query: {
select: '_path,title,description,navigation',
Copy link
Member Author

@arashsheyda arashsheyda Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will open a PR in nuxt/nuxt.com later so we don't get the body and other fields...)

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 21, 2024

Deploying nuxt-devtools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6edcb9f
Status:⚡️  Build in progress...

View logs

@antfu antfu merged commit 52b6468 into main Jun 27, 2024
@antfu antfu changed the title fix: use nuxt search api for showing docs feat: use nuxt search api for showing docs Jun 27, 2024
@antfu antfu deleted the fix/use-nuxt-search-api-for-docs branch June 27, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants