thinknimble / tn-spa-bootstrapper

A production-ready Django SPA app on Heroku in 20 minutes or less!
https://tn-spa-bootstrapper-staging.herokuapp.com/
MIT License
8 stars 9 forks source link

new way of env vars #295

Closed paribaker closed 7 months ago

paribaker commented 7 months ago

What this does

Since expo SDK 49 we can bring env vars in a uniform manner using the default eas.json, we can also override these variables with variables from the .env.example (eg when working against a local ngrok backend) by prefixing the env variable with EXPO_PUBLIC_

Edit (damian) Source: Reading environment variables from .env files

This is convenient :

Variables can be updated as you edit your code without restarting the Expo CLI

‼️ important if someone wants to edit this code:

Alternative versions of the expression are not supported. For example, process.env['EXPO_PUBLIC_KEY'] or const {EXPO_PUBLIC_X} = process.env is invalid and will not be inlined.

Checklist

How to test

Add user steps to achieve desired functionality for this feature.