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

163
Views
Why I can't use an API key from .env file in javascript?

So I have an .env file with api key inside of it:

API_KEY = {apikey}

And I'm trying to use it in app.js file:

const API_KEY = process.env.API_KEY;

console.log(API_KEY);

And I get the next error:

Uncaught ReferenceError: process is not defined

I'm not using node.js so I guess there's some way it couldn't work.

about 4 years ago · Juan Pablo Isaza
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!