17 lines
380 B
TypeScript
17 lines
380 B
TypeScript
import { defineContentConfig, defineCollection } from "@nuxt/content";
|
|
import { z } from "zod";
|
|
|
|
export default defineContentConfig({
|
|
collections: {
|
|
projects: defineCollection({
|
|
type: "page",
|
|
source: "projects/*.md",
|
|
schema: z.object({
|
|
description: z.string(),
|
|
url: z.url().nullable(),
|
|
order: z.number(),
|
|
}),
|
|
}),
|
|
},
|
|
});
|