Behebe 404 im Nuxt-Devserver durch _path-basierte Content-Abfrage
This commit is contained in:
@@ -5,7 +5,7 @@ const contentPath = computed(() => route.path)
|
||||
const { data: navigation } = await useAsyncData('docs-navigation', () => fetchContentNavigation())
|
||||
const { data: page } = await useAsyncData(
|
||||
() => `docs-page-${contentPath.value}`,
|
||||
() => queryContent(contentPath.value).findOne(),
|
||||
() => queryContent().where({ _path: contentPath.value }).findOne(),
|
||||
{ watch: [contentPath] }
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user