Swapping Providers
Replace the default AWS provider with your own implementation.
Each domain uses a default AWS provider but supports swapping to any implementation that satisfies the provider contract.
const { catalog } = require("@beem/sdk");
catalog.setProvider({
download: async (bucket, key) => { /* Azure Blob implementation */ },
upload: async (bucket, key, body, contentType) => { /* ... */ },
presign: async (bucket, key, expiresIn) => { /* ... */ },
});Updated 7 days ago
