Environment variables with the new channel feature of expo 23

on expo 23, there are release-channels, so you can publish to staging or prod.

But it’s not documented how you do configuration based on the channel.

e.g. i have a staging api and a production api and i want the prod-channel to use the prod-api and the staging-channel to use the staging-api.

How do i do that?

1 Like

Hi @macrozone, we dont support this in our initial beta version right now, but we will soon. Sorry for the inconvenience!

hi @macrozone, you can now access the channel your release is published under with the releaseChannel field in the manifest object (https://docs.expo.io/versions/latest/sdk/constants.html#expoconstantsmanifest).

1 Like