mirror of
https://github.com/documenso/documenso
synced 2026-04-21 13:27:18 +00:00
fix: move window.__ENV__ script before client bundle to prevent stale fallback (#2592)
This commit is contained in:
parent
11eb4dd2cd
commit
4daec44550
1 changed files with 3 additions and 3 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue