fix: move window.__ENV__ script before client bundle to prevent stale fallback (#2592)

This commit is contained in:
Lucas Smith 2026-03-10 12:15:15 +11:00 committed by GitHub
parent 11eb4dd2cd
commit 4daec44550
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,14 +148,14 @@ export function LayoutContent({ children }: { children: React.ReactNode }) {
</TooltipProvider>
</SessionProvider>
<ScrollRestoration />
<Scripts />
<script
dangerouslySetInnerHTML={{
__html: `window.__ENV__ = ${JSON.stringify(publicEnv)}`,
}}
/>
<ScrollRestoration />
<Scripts />
</body>
</html>
);