mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
chore(): update config object to astro 4.0.0 format
This commit is contained in:
@@ -13,7 +13,8 @@ const authors = defineCollection({
|
||||
|
||||
const docs = defineCollection({
|
||||
schema: (ctx) =>
|
||||
docsSchema()(ctx).extend({
|
||||
docsSchema({
|
||||
extend: z.object({
|
||||
noCommentSection: z.boolean().optional().default(false),
|
||||
challenge: z
|
||||
.object({
|
||||
@@ -32,9 +33,19 @@ const docs = defineCollection({
|
||||
})
|
||||
.optional(),
|
||||
}),
|
||||
})(ctx),
|
||||
});
|
||||
|
||||
const i18n = defineCollection({ type: 'data', schema: i18nSchema() });
|
||||
const i18n = defineCollection({
|
||||
type: 'data',
|
||||
schema: i18nSchema({
|
||||
extend: z.object({
|
||||
'author.createdBy': z.string(),
|
||||
'buttons.star': z.string(),
|
||||
'buttons.sponsor': z.string(),
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
docs: docs,
|
||||
|
||||
Reference in New Issue
Block a user