SDK 49 .env file vars available to eas build

Hi! I have setup the eas-build-pre-install hook in package.json to recreate the google-services.json encoded fyle like this echo $GOOGLE_SERVICES_JSON | base64 --decode > ./google-services.json. THis line creates a google-services.json fyle by decoding a secret var named GOOGLE_SERVICES_JSON.

To build locally my project, I’ve setup that var in my .bashrc file but, as I’m using SDK 49 with the brand new .env files Environment variables in Expo - Expo Documentation, can I use that env files to set GOOGLE_SERVICES_JSON and be available to eas build hook eas-build-pre-install?

Thanks!