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

269
Views
Expo - process.env.API_URL returns undefined

Im using process.env.API_URL to try and grab my api URL from eas.json file but it keeps returning "undefined". Below is my eas.json and the code I am using to grab both API_URL and 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 returns the correct value however console.logging apiURL returns "undefined"

I followed the example that the Expo docs show here: https://docs.expo.dev/guides/environment-variables/

Why would API_KEY return fine but API_URL be undefined? Ive restarted Expo and cleared cache and the problem still persists.

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!