Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

204
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda