Add article definition to suppress the '[ERROR] The build was canceled.' log.
This commit is contained in:
35
src/content/config.ts
Normal file
35
src/content/config.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { z, defineCollection } from 'astro:content';
|
||||
|
||||
const blogCollection = defineCollection({
|
||||
type: 'content',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
category: z.string(),
|
||||
lastUpdate: z.string()
|
||||
}),
|
||||
});
|
||||
const noteCollection = defineCollection({
|
||||
type: 'content',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
category: z.string(),
|
||||
lastUpdate: z.string()
|
||||
}),
|
||||
});
|
||||
const translationCollection = defineCollection({
|
||||
type: 'content',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
category: z.string(),
|
||||
lastUpdate: z.string()
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
'blog': blogCollection,
|
||||
'note': noteCollection,
|
||||
'translation': translationCollection,
|
||||
};
|
||||
Reference in New Issue
Block a user