Eas build secret variables

I followed the docs on secret variables in eas but it crashes my app in production. My steps:

  1. Create the secrets in expo dashboard
  2. Check in cli running eas secret:list and they are there
  3. Access the variables in my javascript code by using process.env.*
  4. When I run the ios preview using eas build -p ios --profile preview it crashes when I open the app.

before this I was just using a string constant. Now I want to put those values into secrets. Meaning that the app works before adding process.env.

I am wondering if maybe I missed anything to add to my eas.json or app.json files?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.