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

200
Views
How to use environment variables with HarperDB cloud functions?

How to make use of environment variables in HarperDB cloud functions? I have a secret value that I need to save secretly as an env variable. Adding a .env file and using dotenv library to read the value doesn't seem to work in the function.

What is the right way to use process.env inside the cloud functions?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The Custom Function server is managed by HarperDB, so it looks for a .env file located at HarperDB's root.

The solution is to set the path value when you invoke dotenvconfig :

require('dotenv').config({ path: '/path/to/hdb/custom_functions/myproject/.env' })
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!