From 458226b2ab1d6c11e7aab8ad7ffd459933e1800a Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 2 Jun 2025 16:28:25 -0700 Subject: [PATCH] Remove debug flag --- src/lib/server/cloudinary.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/server/cloudinary.ts b/src/lib/server/cloudinary.ts index 5eec9c9..0e90a2e 100644 --- a/src/lib/server/cloudinary.ts +++ b/src/lib/server/cloudinary.ts @@ -77,11 +77,8 @@ export async function uploadFile( customOptions?: any ): Promise { try { - // TEMPORARY: Force Cloudinary usage for testing SVG uploads - const FORCE_CLOUDINARY_IN_DEV = true; // Toggle this to test - // Use local storage in development or when Cloudinary is not configured - if ((dev && !FORCE_CLOUDINARY_IN_DEV) || !isCloudinaryConfigured()) { + if (dev || !isCloudinaryConfigured()) { logger.info('Using local storage for file upload') const localResult = await uploadFileLocally(file, type)