From cfb36e800725b36ee77d5055aa049ef92e3f6c4a Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 9 Jul 2026 18:35:18 +0200 Subject: [PATCH] Preconnect to Nitro client URL for faster client page load --- src/app/layout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0b61cc72..bcf96b9b 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -62,6 +62,7 @@ export default async function RootLayout({ children }: { children: ReactNode }) const headersList = await headers(); const pathname = headersList.get("x-pathname") || headersList.get("next-url") || ""; const isClient = pathname === "/client" || pathname.startsWith("/client/"); + const nitroUrl = await siteSettings.get("nitro_client_url", ""); return ( @@ -69,6 +70,9 @@ export default async function RootLayout({ children }: { children: ReactNode })