Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Vercel BLOB adapter installed but uploads still going to local directory

default discord avatar
zenwhiskersmeowlast year
1

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.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.