You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Payload CMS with the S3 storage adapter to store files for different collections in separate buckets. Here's an example of my payload.config.ts:
This approach works as intended, but I have to define the s3Storage plugin multiple times (once for each bucket/collection combination). My question is:
Is there a better or more efficient way to handle this kind of situation?
Can I configure multiple buckets for different collections using a single s3Storage plugin instance, or is this the recommended approach?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using Payload CMS with the S3 storage adapter to store files for different collections in separate buckets. Here's an example of my
payload.config.ts
:This approach works as intended, but I have to define the
s3Storage
plugin multiple times (once for each bucket/collection combination). My question is:s3Storage
plugin instance, or is this the recommended approach?Thank you in advance for your guidance!
Beta Was this translation helpful? Give feedback.
All reactions