Files
phundrak.com/frontend/content.config.ts
Lucien Cartier-Tilet 9f1d4db0de
All checks were successful
Publish Docker Images / build-and-publish (push) Successful in 9m29s
feat: fill pages
2025-11-13 22:13:40 +01:00

43 lines
868 B
TypeScript

import { defineCollection, defineContentConfig } from '@nuxt/content';
import { z } from 'zod';
const commonSchema = z.object({
title: z.string(),
description: z.string()
});
export default defineContentConfig({
collections: {
content_en: defineCollection({
type: 'page',
source: {
include: 'en/**/*.md',
prefix: '',
},
schema: commonSchema,
}),
content_fr: defineCollection({
type: 'page',
source: {
include: 'fr/**/*.md',
prefix: '',
},
schema: commonSchema,
}),
content_data_en: defineCollection({
type: 'data',
source: {
include: 'en/**/*.json',
prefix: ''
},
}),
content_data_fr: defineCollection({
type: 'data',
source: {
include: 'fr/**/*.json',
prefix: ''
},
}),
},
});