diff --git a/apps/web/lib/storage.ts b/apps/web/lib/storage.ts index 68c3358..b50a828 100644 --- a/apps/web/lib/storage.ts +++ b/apps/web/lib/storage.ts @@ -1,9 +1,9 @@ import { S3Client, PutObjectCommand, DeleteObjectCommand } from "@aws-sdk/client-s3"; import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; -const bucket = process.env["STORAGE_BUCKET"] ?? "epicure-uploads"; -const endpoint = process.env["STORAGE_ENDPOINT"] ?? "http://localhost:9000"; -const publicUrl = process.env["STORAGE_PUBLIC_URL"] ?? "http://localhost:9000"; +const bucket = process.env["STORAGE_BUCKET"] || "epicure-uploads"; +const endpoint = process.env["STORAGE_ENDPOINT"] || "http://localhost:9000"; +const publicUrl = process.env["STORAGE_PUBLIC_URL"] || "http://localhost:9000"; const credentials = { accessKeyId: process.env["STORAGE_ACCESS_KEY"] ?? "minioadmin", diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index da55001..1190a9f 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -1,6 +1,6 @@ import type { NextConfig } from "next"; -const storagePublicUrl = process.env["STORAGE_PUBLIC_URL"] ?? "http://localhost:9000"; +const storagePublicUrl = process.env["STORAGE_PUBLIC_URL"] || "http://localhost:9000"; const storageUrl = new URL(storagePublicUrl); const storageOrigin = storageUrl.origin;