chore: separate frontend from backend

This commit is contained in:
2025-11-13 23:28:01 +01:00
parent 9f1d4db0de
commit 17fbe1d507
91 changed files with 415 additions and 6985 deletions

42
content.config.ts Normal file
View File

@@ -0,0 +1,42 @@
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: ''
},
}),
},
});