|
|
@@ -23,7 +23,7 @@ export class File {
|
|
|
// 获取完整的文件URL(包含MINIO_HOST前缀)
|
|
|
get fullUrl(): string {
|
|
|
const protocol = process.env.MINIO_USE_SSL !== 'false' ? 'https' : 'http';
|
|
|
- const port = process.env.MINIO_PORT ? `:${process.env.MINIO_PORT}` : '';
|
|
|
+ const port = process.env.MINIO_PORT && import.meta.env.PROD ? `:${process.env.MINIO_PORT}` : '';
|
|
|
const host = process.env.MINIO_HOST || 'localhost';
|
|
|
const bucketName = process.env.MINIO_BUCKET_NAME || 'd8dai';
|
|
|
return `${protocol}://${host}${port}/${bucketName}/${this.path}`;
|