feat(storage-azure): expose storage client (#7069)
Expose the storage client for re-use.
```ts
import { getStorageClient } from '@payloadcms/storage-azure'
import { getPayload } from 'payload'
const awaitedConfig = await importConfig('./config.ts')
const payload = await getPayload({ config: awaitedConfig })
// Get internal azure blob storage client
const storageClient = getStorageClient({
connectionString: process.env.AZURE_STORAGE_CONNECTION_STRING,
containerName: process.env.AZURE_STORAGE_CONTAINER_NAME,
})
```
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
"dotenv": "16.4.5",
|
||||
"eslint-plugin-playwright": "1.6.2",
|
||||
"execa": "5.1.1",
|
||||
"file-type": "17.1.6",
|
||||
"http-status": "1.6.2",
|
||||
"jwt-decode": "4.0.0",
|
||||
"lexical": "0.15.0",
|
||||
|
||||
Reference in New Issue
Block a user