// content.config.ts
export default defineContentConfig({
collections: {
// Because I'm using @nuxtjs/i18n
a___en: defineCollection({
source: 'a/*.md',
type: 'page',
schema: z.object({
slug: z.string(),
author: z.string(),
publishedAt: z.date().nullish(),
}),
}),
authors: defineCollection({
source: 'authors/*.yml',
type: 'data',
schema: z.object({
...
}),
}),
pages: defineCollection({
source: {
include: '**/*.md',
exclude: ['a/*.md'],
},
type: 'page',
}),
},
})
// content.config.ts
export default defineContentConfig({
collections: {
// Because I'm using @nuxtjs/i18n
a___en: defineCollection({
source: 'a/*.md',
type: 'page',
schema: z.object({
slug: z.string(),
author: z.string(),
publishedAt: z.date().nullish(),
}),
}),
authors: defineCollection({
source: 'authors/*.yml',
type: 'data',
schema: z.object({
...
}),
}),
pages: defineCollection({
source: {
include: '**/*.md',
exclude: ['a/*.md'],
},
type: 'page',
}),
},
})