feat: 引入 @nuxt/content

This commit is contained in:
2025-06-06 01:33:40 +08:00
parent e558f44ac0
commit dade6466bb
6 changed files with 1643 additions and 69 deletions

13
content.config.ts Normal file
View File

@@ -0,0 +1,13 @@
import { defineCollection, defineContentConfig, z } from "@nuxt/content";
export default defineContentConfig({
collections: {
download: defineCollection({
source: "download/*.md",
type: "page",
schema: z.object({
rawbody: z.string(),
}),
}),
},
});