use bucket from environment variable

This commit is contained in:
KM Koushik
2025-09-17 18:08:57 +10:00
parent c8ef49f12c
commit 8c8af1f846
2 changed files with 5 additions and 3 deletions
@@ -3,7 +3,7 @@ import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
import { env } from "~/env";
let S3: S3Client | null = null;
export const DEFAULT_BUCKET = "unsend";
export const DEFAULT_BUCKET = env.S3_COMPATIBLE_BUCKET || "unsend";
export const isStorageConfigured = () =>
!!(