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",
type: "textarea",
},
{
name: "cannonical_url",
label: "Cannonical Url",
type: "text",
},
],
},
{

View File

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

View File

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