-
-
Notifications
You must be signed in to change notification settings - Fork 741
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I want to add kebabCased keys to my defineContentConfig() to math the route.path value.
Current
import { defineContentConfig, defineCollection } from "@nuxt/content";
export default defineContentConfig({
collections: {
gettingStarted: defineCollection({
type: "page",
source: "1.guide/1.getting-started/**/*.md",
}),
},
});Expected
import { defineContentConfig, defineCollection } from "@nuxt/content";
export default defineContentConfig({
collections: {
"getting-started": defineCollection({
type: "page",
source: "1.guide/1.getting-started/**/*.md",
}),
},
});By supporting this, I can make my queryCollection() a bit more flexible by adding a route.path or a part of it.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request