KDA
KDA
KPCKevin Powell - Community
Created by KDA on 12/19/2023 in #front-end
Nuxt3/Content V2 static site - unable to query data in component?
I've been attempting to fetch some basic content into a navigation component (TheHeader.vue) - using the following const { data: navigation } = useFetch("navigation", () => queryContent("/website/navigation").findOne( Works fine if SSR is true, but I want to generate a static site, and when using nuxt generate with SSR set to false the content doesn't pull correctly into the component? I'm not sure exactly what I'm doing wrong, and the documentation doesn't seem to cover this (Either the nuxt 3 docs, or the content v2 docs) Any help much appreciated - have scoured the internet and the docs and can't seem to find an answer - also posted this same thing in the nuxt discord and haven't got an answer yet
6 replies