diff --git a/src/collections/Audios/Audios.ts b/src/collections/Audios/Audios.ts index bb9d36e..f04fa2a 100644 --- a/src/collections/Audios/Audios.ts +++ b/src/collections/Audios/Audios.ts @@ -28,6 +28,7 @@ export const Audios = buildCollectionConfig({ defaultSort: fields.updatedAt, admin: { group: CollectionGroups.Media, + preview: ({ slug }) => `https://v3.accords-library.com/en/audios/${slug}`, defaultColumns: [ fields.filename, fields.thumbnail, diff --git a/src/collections/Images/Images.ts b/src/collections/Images/Images.ts index 388e40b..79d3f76 100644 --- a/src/collections/Images/Images.ts +++ b/src/collections/Images/Images.ts @@ -25,7 +25,10 @@ export const Images = buildImageCollectionConfig({ singular: "Image", plural: "Images", }, - admin: { defaultColumns: [fields.filename, fields.posts, fields.updatedAt] }, + admin: { + preview: ({ slug }) => `https://v3.accords-library.com/en/images/${slug}`, + defaultColumns: [fields.filename, fields.posts, fields.updatedAt], + }, upload: { imageSizes: [ { diff --git a/src/collections/Videos/Videos.ts b/src/collections/Videos/Videos.ts index dfe12e5..32697a9 100644 --- a/src/collections/Videos/Videos.ts +++ b/src/collections/Videos/Videos.ts @@ -37,6 +37,7 @@ export const Videos = buildCollectionConfig({ defaultSort: fields.updatedAt, admin: { group: CollectionGroups.Media, + preview: ({ slug }) => `https://v3.accords-library.com/en/videos/${slug}`, defaultColumns: [ fields.filename, fields.thumbnail,