Spaces:
Running
Running
Download config/cloudinary.js from 4send/messenger: direct link, hf CLI and curl.
- Browser
- Download file 533 Bytes
-
https://huggingface.co/spaces/4send/messenger/resolve/main/config/cloudinary.js
- Command line
-
hf download hf://spaces/4send/messenger/config/cloudinary.js
-
curl -L -o cloudinary.js https://huggingface.co/spaces/4send/messenger/resolve/main/config/cloudinary.js
533 Bytes
| 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; | |