fix: blogs and pages cannonical input

This commit is contained in:
RizqiSyahrendra 2025-02-12 23:08:10 +07:00
parent 8dc3f544d7
commit 92d45e0ee7
3 changed files with 14 additions and 0 deletions

View File

@ -58,6 +58,11 @@ export const Blogs: CollectionConfig = {
label: "Description", label: "Description",
type: "textarea", type: "textarea",
}, },
{
name: "cannonical_url",
label: "Cannonical Url",
type: "text",
},
], ],
}, },
{ {

View File

@ -54,6 +54,11 @@ export const Pages: CollectionConfig = {
label: "Description", label: "Description",
type: "textarea", type: "textarea",
}, },
{
name: "cannonical_url",
label: "Cannonical Url",
type: "text",
},
], ],
}, },
], ],

View File

@ -191,6 +191,7 @@ export interface Blog {
meta?: { meta?: {
title?: string | null; title?: string | null;
description?: string | null; description?: string | null;
cannonical_url?: string | null;
}; };
is_published?: boolean | null; is_published?: boolean | null;
updatedAt: string; updatedAt: string;
@ -303,6 +304,7 @@ export interface Page {
meta?: { meta?: {
title?: string | null; title?: string | null;
description?: string | null; description?: string | null;
cannonical_url?: string | null;
}; };
updatedAt: string; updatedAt: string;
createdAt: string; createdAt: string;
@ -639,6 +641,7 @@ export interface BlogsSelect<T extends boolean = true> {
| { | {
title?: T; title?: T;
description?: T; description?: T;
cannonical_url?: T;
}; };
is_published?: T; is_published?: T;
updatedAt?: T; updatedAt?: T;
@ -704,6 +707,7 @@ export interface PagesSelect<T extends boolean = true> {
| { | {
title?: T; title?: T;
description?: T; description?: T;
cannonical_url?: T;
}; };
updatedAt?: T; updatedAt?: T;
createdAt?: T; createdAt?: T;