export default () => ({
upload: {
config: {
provider: "cloudinary",
providerOptions: {
cloud_name: process.env.CLOUDINARY_NAME,
api_key: process.env.CLOUDINARY_KEY,
api_secret: process.env.CLOUDINARY_SECRET,
},
actionOptions: {
upload: {},
delete: {},
},
sizeLimit: 10 * 1024 * 1024, // 10mb byte-tan
},
},
"icons-field": {
enabled: true,
config: {
icons: [
{
name: "bonbilla",
svg: '',
},
{
name: "arkatza",
svg: '',
},
{
name: "sobrea",
svg: '',
},
],
},
},
"webp-converter": {
enabled: true,
config: {
// mimeTypes that converts to WebP. Default is ['image/png', 'image/jpeg', 'image/jpg']
mimeTypes: undefined,
options: {
// WebP options: https://sharp.pixelplumbing.com/api-output#webp
},
},
},
});