mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-19 05:09:41 +02:00
11 lines
356 B
TypeScript
11 lines
356 B
TypeScript
|
import appConfig from '../utils/appConfig.js';
|
||
|
import S3UploadsDriver from './s3.js';
|
||
|
import LocalUploadsDriver from './local.js';
|
||
|
|
||
|
/**
|
||
|
* Initialize the uploads driver based on the configuration
|
||
|
*/
|
||
|
export const uploadsDriver = appConfig.uploads.driver === 'local'
|
||
|
? new LocalUploadsDriver(appConfig.uploads)
|
||
|
: new S3UploadsDriver(appConfig.uploads);
|