Open jeanbmar opened 2 years ago
In order to reduce overhead for developers, this:
fields: [ { name: 'url', type: 'text', access: { create: () => false, }, admin: { disabled: true, }, hooks: { afterRead: [ ({ data: doc }) => `https://my-bucket.s3.eu-west-3.amazonaws.com/images/${doc.type}/${doc.filename}`, ], }, }, ],
will be replaced with this:
s3: { // ... s3Url: ({ doc }) => `https://my-bucket.s3.eu-west-3.amazonaws.com/images/${doc.type}/${doc.filename}` },
In order to reduce overhead for developers, this:
will be replaced with this: