Remove debug flag

This commit is contained in:
Justin Edmund 2025-06-02 16:28:25 -07:00
parent a111172812
commit 458226b2ab

View file

@ -77,11 +77,8 @@ export async function uploadFile(
customOptions?: any customOptions?: any
): Promise<UploadResult> { ): Promise<UploadResult> {
try { 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 // 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') logger.info('Using local storage for file upload')
const localResult = await uploadFileLocally(file, type) const localResult = await uploadFileLocally(file, type)