Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
Cloudinary configuration is not read data from .env file

I'm using Cloudinary with my node.js project...

The issue is cloudinary.config is not reading data from .env file, I have to type them directly!

const cloudinary = require("cloudinary");

cloudinary.config({
  cloud_name: process.env.CLOUD_NAME,
  api_key: process.env.CLOUD_API_KEY,
  api_secret: process.env.CLOUD_API_SECRET,
});

cloudinary.v2.uploader.upload(
  file.tempFilePath,
  { folder: "test" },
  async(err, result) => {
    if(err) throw err;
    console.log(result);
  }
);

I'll be thankful if anyone can help ๐Ÿ™๐Ÿป

about 4 years ago ยท Juan Pablo Isaza
1 answers
Answer question

0

Issue is solved with adding require("dotenv").config(); to the beginning of the same file which contains cloudinary.config

about 4 years ago ยท Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!