Skip to main content

Command Palette

Search for a command to run...

EAS build secrets stay out of bundles when env profiles and eas.json split right

Updated
1 min readView as Markdown
EAS build secrets stay out of bundles when env profiles and eas.json split right

A secret that ships inside your JavaScript bundle is not a secret. In Expo production builds, the most common leak is not a hacked server — it is a service key baked into the bundle through a public environment variable, then published to a store listing that anyone can download and unpack.

This post lays out a practical split for EAS builds: public config that is safe to embed, server-side secrets that never enter the bundle, and the profile setup that keeps staging and production from cross-contaminating each other.

If you are catching up on the release lane, start with /blog/eas-update-rollback-plan — the rollback plan assumes your builds are reproducible, and reproducible builds start with clean environment separation.


This is an excerpt. Read the full post at otf-kit.dev/blog/eas-build-secrets-env-profiles-production — full-stack kits your AI coding agent can actually ship to production. Browse the kits →

More from this blog

O

OTF — kits your AI coding agent can ship to production

548 posts

Engineering notes on shipping production apps with AI coding tools — Claude Code, Cursor, Codex, Lovable, Bolt — and the stack underneath: React Native, Expo, Next.js, Supabase. Honest takes on what works, what breaks, and the full-stack kits that get you to production faster. By OTF.