Hey everyone! I'm working on a PayloadCMS project and need some advice on setting up file storage. For local development, I want to use a Minio S3 instance to handle uploads, but when deploying to Payload Cloud, I’d like it to switch seamlessly to the S3 storage provided by the platform.
My goal is to configure payload.config.js and environment variables so that it works with Minio locally (using access/secret keys and a custom endpoint) and then uses Payload Cloud’s S3 (with Cognito auth, I assume?) in production without breaking anything. Has anyone set this up before? What’s the best way to handle the conditional logic for switching between the two environments? Any tips or examples would be super helpful! Thanks!