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.
where is payload hosted for you? are you using docker?
@jarrod69420 using payloadcms cloud.
Do you have the payload cloud plugin installed? Sounds like you might be missing that piece!
https://github.com/payloadcms/plugin-cloudStar
Discord
online
Get help straight from the Payload team with an Enterprise License.