affanshahid / multer-storage-cloudinary

A Cloudinary multer storage engine
MIT License
104 stars 18 forks source link

CLOUDINARY_URL not working with Nestjs. #26

Closed abrarniyazi closed 3 years ago

abrarniyazi commented 3 years ago

I am using coudinary with multter-store-cloudinary npm package and it was working perfectly fine until recently. To set the configuration parameters I was setting it to enviornment varialble CLOUDINARY_URL. But it seems like now it's not picking up credentials from this variable. I didn't change anything in the relevant code and also I updated some other packages with not directly related. I am getting below error:

Must supply api_key

I already checked the env variable. It does contain the value. If I adding config directly then it works but I would like it to the way it was using CLOUDINARY_URL env variable.

Any help would be appreciated. Thanks

"cloudinary": "^1.25.1",
"multer-storage-cloudinary": "^4.0.0",