Skip to content

The Open Source DocuSign Alternative.

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

Lucas Smith4daec445505e
diff --git a/apps/remix/app/root.tsx b/apps/remix/app/root.tsx
index 76db197e0..da7d281dc 100644
--- a/apps/remix/app/root.tsx
+++ b/apps/remix/app/root.tsx
@@ -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>
);