Configuration for storage providers used by the SDK.
Allows you to configure multiple storage backends (IPFS, Pinata, Google Drive, etc.) and specify which one to use by default for file operations.
const storage: StorageConfig = { providers: { ipfs: new IPFSStorage({ gateway: 'https://gateway.pinata.cloud' }), pinata: new PinataStorage({ apiKey: 'your-key', secretKey: 'your-secret' }) }, defaultProvider: 'ipfs'}; Copy
const storage: StorageConfig = { providers: { ipfs: new IPFSStorage({ gateway: 'https://gateway.pinata.cloud' }), pinata: new PinataStorage({ apiKey: 'your-key', secretKey: 'your-secret' }) }, defaultProvider: 'ipfs'};
Map of provider name to storage provider instance
Optional
Default provider name to use when none specified
Configuration for storage providers used by the SDK.
Allows you to configure multiple storage backends (IPFS, Pinata, Google Drive, etc.) and specify which one to use by default for file operations.
Example