BREAKING CHANGE: Rename `@payloadcms/plugin-cloud` to `@payloadcms/payload-cloud`. Anyone using the existing plugin will need to switch to using the new package. ## Why? Since v3 will be using _fixed versioning_, all versions of `^3` must be available. Unfortunately, the `@payloadcms/plugin-cloud` version has already breached that version number. Renaming will allow it to be on the same version as other monorepo packages. Additionally, the name `plugin-cloud` is quite ambiguous and sometimes is confused with `plugin-cloud-storage`, so using `payload-cloud` feels like a good move to make this more evident.
33 lines
533 B
TypeScript
33 lines
533 B
TypeScript
import type { CollectionConfig } from 'payload'
|
|
|
|
export const Media: CollectionConfig = {
|
|
slug: 'media',
|
|
access: {
|
|
read: () => true,
|
|
create: () => true,
|
|
},
|
|
upload: {
|
|
imageSizes: [
|
|
{
|
|
height: 400,
|
|
width: 400,
|
|
crop: 'center',
|
|
name: 'square',
|
|
},
|
|
{
|
|
width: 900,
|
|
height: 450,
|
|
crop: 'center',
|
|
name: 'sixteenByNineMedium',
|
|
},
|
|
],
|
|
},
|
|
fields: [
|
|
{
|
|
name: 'alt',
|
|
label: 'Alt Text',
|
|
type: 'text',
|
|
},
|
|
],
|
|
}
|