EAS 4 KiB file limit forces smarter multi-environment config for Expo apps
A developer building CannyCart, a voice-first shopping app using Amplify Gen 2 and Expo, hit a hard 4 KiB ceiling when trying to use EAS environment variables to deliver backend config files to different build profiles. The file in question, amplify_outputs.json, exceeded the limit at 4.5 KB because it embeds a full model_introspection schema that grows with every data model added. Unlike web builds on Amplify Hosting, EAS mobile builds run on Expo's servers without AWS credentials, meaning the config cannot be regenerated at build time and must be committed to the repository in advance. The developer resolved this by committing one amplify_outputs.json per environment and using an eas-build-pre-install hook to copy the correct file into place based on the active build profile. The workaround highlights a structural asymmetry between web and mobile CI pipelines when using Amplify Gen 2 backends.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in