How do you do environment variables in Expo correctly?

Please provide the following:

  1. SDK Version: 40.0.1
  2. Platforms(Android/iOS/web/all): ALL
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

The documentation for the first section for “environment variables” has no examples:

I’ve tried the usual .env file and different variations on that, but nothing works.

Any help here?

looks like you answered your question on discord :slight_smile: i added some more context

1 Like

Also, exporting/sourcing the ENV vars locally works:

https://github.com/expo/expo/pull/12512/files

Thanks @notbrent! (sorry for the multi-post)

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