mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Move Flydrive home and implement Azure (#4110)
* Add new packages * Update docs * Update linked packages * Setup file pointers * Don't require getStream to be async * List credits * Load azure in storage * Fix typo in docs * Fix another typo * Remove not about raising an issue
This commit is contained in:
@@ -70,10 +70,11 @@
|
||||
"@directus/format-title": "file:../packages/format-title",
|
||||
"@directus/schema": "file:../packages/schema",
|
||||
"@directus/specs": "file:../packages/specs",
|
||||
"@directus/drive": "file:../packages/drive",
|
||||
"@directus/drive-gcs": "file:../packages/drive-gcs",
|
||||
"@directus/drive-s3": "file:../packages/drive-s3",
|
||||
"@directus/drive-azure": "file:../packages/drive-azure",
|
||||
"@godaddy/terminus": "^4.4.1",
|
||||
"@slynova/flydrive": "^1.0.3",
|
||||
"@slynova/flydrive-gcs": "^1.0.3",
|
||||
"@slynova/flydrive-s3": "^1.0.3",
|
||||
"argon2": "^0.27.0",
|
||||
"atob": "^2.1.2",
|
||||
"axios": "^0.21.0",
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import { StorageManager, LocalFileSystemStorage, StorageManagerConfig, Storage } from '@slynova/flydrive';
|
||||
import { StorageManager, LocalFileSystemStorage, StorageManagerConfig, Storage } from '@directus/drive';
|
||||
import env from './env';
|
||||
import { validateEnv } from './utils/validate-env';
|
||||
import { getConfigFromEnv } from './utils/get-config-from-env';
|
||||
import { toArray } from './utils/to-array';
|
||||
|
||||
/** @todo dynamically load these storage adapters */
|
||||
import { AmazonWebServicesS3Storage } from '@slynova/flydrive-s3';
|
||||
import { GoogleCloudStorage } from '@slynova/flydrive-gcs';
|
||||
import { AmazonWebServicesS3Storage } from '@directus/drive-s3';
|
||||
import { GoogleCloudStorage } from '@directus/drive-gcs';
|
||||
import { AzureBlobWebServicesStorage } from '@directus/drive-azure';
|
||||
|
||||
validateEnv(['STORAGE_LOCATIONS']);
|
||||
|
||||
@@ -65,5 +66,7 @@ function getStorageDriver(driver: string) {
|
||||
return AmazonWebServicesS3Storage;
|
||||
case 'gcs':
|
||||
return GoogleCloudStorage;
|
||||
case 'azure':
|
||||
return AzureBlobWebServicesStorage;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user