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

278
Views
Expo - process.env.API_URL devuelve indefinido

Estoy usando process.env.API_URL para intentar obtener mi URL de API del archivo eas.json pero sigue volviendo "indefinido". A continuación se muestra mi eas.json y el código que estoy usando para obtener API_URL y API_KEY:

 { "build": { "release": {}, "production": { "env": { "API_KEY": "myapikey", "API_URL": "https://api.my.com" } }, "development": { "developmentClient": true, "distribution": "internal", "env": { "API_KEY": "myapikey", "API_URL": "https://staging-api.my.com" } } }, "submit": { "release": { "android": { "serviceAccountKeyPath": "../path/to/api-xxx-yyy-zzz.json", "track": "internal" } } } }
 const apiKey = process.env.API_KEY; const apiURL = process.env.API_URL;

console.logging the apiKey devuelve el valor correcto; sin embargo, console.logging apiURL devuelve "indefinido"

Seguí el ejemplo que muestran los documentos de Expo aquí: https://docs.expo.dev/guides/environment-variables/

¿Por qué API_KEY regresaría bien pero API_URL no estaría definido? Reinicié Expo y borré el caché y el problema persiste.

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!