phundrak.com/frontend/content.config.ts
Lucien Cartier-Tilet 1abbbdbf79 feat: initialization migration to Nuxt
This commit initializes both the Nuxt frontend and the Rust backend of
the new version of phundrak.com
2025-11-04 16:27:34 +01:00

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,
}),
},
});