Remove debug flag
This commit is contained in:
parent
a111172812
commit
458226b2ab
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue