Title: fix(env): put runtime config on so client reads can't outrun it by icecrasher321 · Pull Request #6923 · simstudioai/sim · GitHub
Open Graph Title: fix(env): put runtime config on so client reads can't outrun it by icecrasher321 · Pull Request #6923 · simstudioai/sim
X Title: fix(env): put runtime config on so client reads can't outrun it by icecrasher321 · Pull Request #6923 · simstudioai/sim
Description: Summary Runtime NEXT_PUBLIC_* config now rides on the element as well as the inline script. is the document's first tag, so the values are readable by any client code that can run at all. getEnv reads that attribute when window.__ENV has not been assigned yet. window.__ENV stays the public global and the preferred read; both transports are built from one function so they cannot drift. The script assigning window.__ENV lands ~13KB after the