mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-18 20:59:42 +02:00
* finish s3 uploads implementation * remove unnecessary file * fix docs * update DEVELOPMENT.md * update doc * update default uploads path
10 lines
356 B
TypeScript
10 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);
|