Add s3 endpoint as preload
This commit is contained in:
@@ -2,8 +2,11 @@ import { Client } from 'minio';
|
||||
|
||||
// TODO: add docker secret parsing
|
||||
|
||||
export const { s3Bucket, s3Host, s3AccessKey, s3SecretKey } =
|
||||
useRuntimeConfig();
|
||||
export const {
|
||||
public: { s3Bucket, s3Host },
|
||||
s3AccessKey,
|
||||
s3SecretKey
|
||||
} = useRuntimeConfig();
|
||||
|
||||
export const minioClient = new Client({
|
||||
endPoint: s3Host,
|
||||
|
||||
Reference in New Issue
Block a user