I've added the option to use process.env.CLOUDINARY_URL and parse the relevant credentials. This makes is easier to deploy using Heroku or similar where a .env file is used instead of settings.json
Fallback behaviour should be the same so this only has an effect for anyone wishing to use process.env.CLOUDINARY_URL
Changes
publicCredentials method to expose cloudName and apiKey to client since process.env is not available on the client.
updated apiKey and apiSecret functions to find credentials from CLOUDINARY_URL if set.
client config now uses response from publicCredentials function if available.
I've added the option to use
process.env.CLOUDINARY_URL
and parse the relevant credentials. This makes is easier to deploy using Heroku or similar where a.env
file is used instead ofsettings.json
Fallback behaviour should be the same so this only has an effect for anyone wishing to use
process.env.CLOUDINARY_URL
Changes
cloudName
andapiKey
to client since process.env is not available on the client.CLOUDINARY_URL
if set.