Spaces:
Running

File size: 533 Bytes
71601b1
 
ae22ea7
 
 
 
 
 
 
 
 
 
 
 
71601b1
ae22ea7
 
 
71601b1
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const cloudinary = require('cloudinary').v2;

const cloudName = process.env.CLOUDINARY_NAME;
const apiKey = process.env.CLOUDINARY_KEY;
const apiSecret = process.env.CLOUDINARY_SECRET;

if (!cloudName || !apiKey || !apiSecret) {
    console.error('[CLOUDINARY] Missing env vars:', {
        CLOUDINARY_NAME: !!cloudName,
        CLOUDINARY_KEY: !!apiKey,
        CLOUDINARY_SECRET: !!apiSecret
    });
}

cloudinary.config({
    cloud_name: cloudName,
    api_key: apiKey,
    api_secret: apiSecret
});

module.exports = cloudinary;