1. EasyHost
  2. Learn
  3. Build-time vs runtime environment variables

Build-time vs runtime environment variables

Build-time variables are read while your app compiles, and their values get baked into the output.

Last updated November 9, 2026

The short version

Build-time variables are read while your app compiles, and their values get baked into the output. Runtime variables are read each time the server runs. Frameworks inline public variables, such as NEXT_PUBLIC_ ones, at build time, so changing them requires a rebuild. Never put secrets in a public variable, because they end up in browser code.

On EasyHost

EasyHost passes your variables to both the build and the running container. Learn more.

Start for free

Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.

npx ezhst skill install