(context: StorageContext)
| 139 | * Get the appropriate storage configuration for a given context |
| 140 | */ |
| 141 | export function getStorageConfig(context: StorageContext): StorageConfig { |
| 142 | if (USE_BLOB_STORAGE) { |
| 143 | return getBlobConfig(context) |
| 144 | } |
| 145 | |
| 146 | if (USE_S3_STORAGE) { |
| 147 | return getS3Config(context) |
| 148 | } |
| 149 | |
| 150 | return {} |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * Get S3 configuration for a given context |
no test coverage detected