You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { defineCollection, defineContentConfig } from '@nuxt/content'
export default defineContentConfig({
collections: {
course: defineCollection({
// Load every file inside the `content` directory
source: '**',
// Specify the type of content in this collection
type: 'page'
})
}
})
The page itself opens, for example if I got to http://localhost:3000/course/usability-heuristics/recognition-rather-than-recall, then I got the content located in the according file.
But I can't fetch navigation. I renamed _.dir.yaml to.navigation.yaml, even though these files don't contain much information.
Tried to look for a similar issue, outputting logs etc, but gave up :(
data.value is simply null whatever I try to do.
The text was updated successfully, but these errors were encountered:
Thank you, I was deleting folders from the content directory until I found what caused the problem.
The mistake was that in one of the folders I had a .png file. As soon as I removed it, it worked. But also, in the second version, when you want to hide a folder or a file, you can start its name with a dot.
In my case I have quite a mix of folders and files that were hidden in v2. How does it work in the third version?
Hello.
I'm trying to migrate from v2 to v3.
content.config.ts
:The page itself opens, for example if I got to
http://localhost:3000/course/usability-heuristics/recognition-rather-than-recall
, then I got the content located in the according file.But I can't fetch navigation. I renamed
_.dir.yaml
to.navigation.yaml
, even though these files don't contain much information.Tried to look for a similar issue, outputting logs etc, but gave up :(
data.value is simply null whatever I try to do.
The text was updated successfully, but these errors were encountered: