import { defineContentConfig, defineCollection } from "@nuxt/content"; import { z } from "zod"; const localeSchema = z.object({ description: z.string(), summary: z.string(), tasks: z.array(z.string()), }); export default defineContentConfig({ collections: { projects: defineCollection({ type: "data", source: "projects/**/index.yml", schema: z.object({ order: z.number(), scope: z.enum(["hobby", "work"]), title: z.string(), link: z.url(), technologies: z.array(z.string()), en: localeSchema, fr: localeSchema, }), }), }, });