-
I am using i18n and works perfectly when running
And this is how I load them: const { data } = await useAsyncData(locale.value, () => {
return queryContent(locale.value + '/component').findOne()
}) I also tried to specify dynamic routes but doesn't work either: generate: {
async ready () {
const { $content } = require('@nuxt/content')
const files = await $content().only(['slug']).fetch()
console.log(files)
}
} I reproduced an example on StackBlitz |
Beta Was this translation helpful? Give feedback.
Answered by
retroriff
Oct 23, 2022
Replies: 1 comment 3 replies
-
The problem was that Content V2 does not work with |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
retroriff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem was that Content V2 does not work with
SSR: false
.