35 lines
687 B
TypeScript
35 lines
687 B
TypeScript
|
|
import { defineCollection, defineContentConfig } from '@nuxt/content';
|
||
|
|
import { z } from 'zod';
|
||
|
|
z;
|
||
|
|
|
||
|
|
const commonSchema = z.object({});
|
||
|
|
|
||
|
|
export default defineContentConfig({
|
||
|
|
collections: {
|
||
|
|
content_en: defineCollection({
|
||
|
|
type: 'page',
|
||
|
|
source: {
|
||
|
|
include: 'en/**',
|
||
|
|
prefix: '',
|
||
|
|
},
|
||
|
|
schema: commonSchema,
|
||
|
|
}),
|
||
|
|
content_fr: defineCollection({
|
||
|
|
type: 'page',
|
||
|
|
source: {
|
||
|
|
include: 'fr/**',
|
||
|
|
prefix: '',
|
||
|
|
},
|
||
|
|
schema: commonSchema,
|
||
|
|
}),
|
||
|
|
content_lfn: defineCollection({
|
||
|
|
type: 'page',
|
||
|
|
source: {
|
||
|
|
include: 'lfn/**',
|
||
|
|
prefix: '',
|
||
|
|
},
|
||
|
|
schema: commonSchema,
|
||
|
|
}),
|
||
|
|
},
|
||
|
|
});
|