MCPcopy
hub / github.com/simstudioai/sim / getStorageConfig

Function getStorageConfig

apps/sim/lib/uploads/config.ts:141–151  ·  view source on GitHub ↗
(context: StorageContext)

Source from the content-addressed store, hash-verified

139 * Get the appropriate storage configuration for a given context
140 */
141export 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

Callers 13

uploadFileFunction · 0.90
createMultipartUploadFunction · 0.90
downloadFileFunction · 0.90
downloadFileStreamFunction · 0.90
deleteFileFunction · 0.90
deleteFilesFunction · 0.90
headObjectFunction · 0.90
getS3InfoForKeyFunction · 0.90
route.tsFile · 0.90
completeOneFunction · 0.90

Calls 2

getBlobConfigFunction · 0.85
getS3ConfigFunction · 0.85

Tested by

no test coverage detected