Browse modulesStorageFunctions
Function: normalizeS3StorageConfig()
function normalizeS3StorageConfig(input: Partial<S3StorageConfig> & {
bucket?: string;
}): S3StorageConfig;Defined in: server/storage/config.ts:195
Validate and fill defaults on a partial, explicitly-supplied config. Use this
when constructing the adapter with createS3FileStore({ config }) from your
own settings object instead of the env. Throws
StorageNotConfiguredError when bucket is missing.
Parameters
| Parameter | Type |
|---|---|
input | Partial<S3StorageConfig> & { bucket?: string; } |