plugins: [
vercelBlobStorage({
enabled: true,
collections: {
[(Media.slug, Users.slug)]: true,
},
token: EnvServer.BLOB_READ_WRITE_TOKEN,
}),
],
import type { CollectionConfig } from 'payload'
export const Media: CollectionConfig = {
slug: 'media',
upload: {
imageSizes: [
{
name: 'thumbnail',
width: 400,
height: undefined,
position: 'centre',
},
{
name: 'card',
width: 768,
height: undefined,
position: 'centre',
},
{
name: 'tablet',
width: 1024,
height: undefined,
position: 'centre',
},
],
adminThumbnail: 'thumbnail',
mimeTypes: ['image/*'],
},
fields: [
{
name: 'alt',
type: 'text',
},
],
}
Uploading the file on the dev server uploads the file to the media folder and vercel blob is empty.