diff --git a/pages/posts/[...slug].vue b/pages/posts/[...slug].vue index a5b1fb5..59aa302 100644 --- a/pages/posts/[...slug].vue +++ b/pages/posts/[...slug].vue @@ -22,9 +22,11 @@ const config = useRuntimeConfig(); const baseUrl = config.public.baseUrl const route = useRoute() -const { data: post } = await useAsyncData(route.path, () => { - return queryCollection('posts').path(route.path).first() -}) +// const { data: post } = await useAsyncData(route.path, () => { +// return queryCollection('posts').path(route.path).first() +// }) + +const { data: post } = await useAsyncData(() => queryCollection('posts').path(route.path).first()) const ogUrl = config.public.baseUrl + route.path useSeoMeta({