Media deleted when CMS is updated

default discord avatar
drojkind
4 months ago
3

Im currently using the hosted version of Payload CMS.



Every time I push a change all media from my site gets wiped. Items are being stored locally in dev and using default storage on hosted payload.



Example collection:



import { CollectionConfig } from 'payload/types';

const Audio: CollectionConfig = {
    slug: 'audio',
    access: {
        read: () => true,
    },
    fields: [
        {
            name: 'title',
            type: 'text',
            required: true,
        },
        {
            name: 'artist',
            type: 'text',
            required: true,
        },
    ],
    upload: {
        staticURL: '/audio',
        staticDir: 'audio',
        mimeTypes: ['audio/*'],
    },
};

export default Audio;

Any ideas what might be causing this? Assume a config issue.

  • default discord avatar
    jarrod69420
    4 months ago

    where is payload hosted for you? are you using docker?

  • default discord avatar
    drojkind
    4 months ago

    @jarrod69420 using payloadcms cloud.

  • default discord avatar
    jarrod69420
    4 months ago

    Do you have the payload cloud plugin installed? Sounds like you might be missing that piece!

    https://github.com/payloadcms/plugin-cloud
Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.