NodeJS - Using environmental variable , cloud name not found
Hi, I'm following your tutotiral at: https://github.com/cloudinary/cloudinary_js
When I use the configuration directly:
cl.config( "cloud_name", "demo");
it works all right.
However, I want to use the environmental variable to secure the keys:
export CLOUDINARY_URL=cloudinary://demo
In your JavaScript source, invoke fromEnvironment()
:
var cl = cloudinary.Cloudinary.new(); cl.fromEnvironment();
However I get the following js error:
Uncaught Unknown cloud_name
-
Hi, Héctor. can you please make sure you're setting a proper value under CLOUDINARY_URL? this URL should be copied from your account's dashboard.
If this was set right, please share with us your cloud name and we'll check it further. If you'd rather keep it private, please feel free to open a support ticket.
Please sign in to leave a comment.
Comments
1 comment