From 9cae609a0a249f576f8d7f0e442fb92fb4d3eb58 Mon Sep 17 00:00:00 2001 From: Yash Kumar Date: Wed, 9 Sep 2026 20:09:23 +0530 Subject: [PATCH] fix(auth): prefetch SSO state in SSR to prevent layout flash --- apps/dokploy/pages/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dokploy/pages/index.tsx b/apps/dokploy/pages/index.tsx index 3e41abae3..e03830297 100644 --- a/apps/dokploy/pages/index.tsx +++ b/apps/dokploy/pages/index.tsx @@ -498,6 +498,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { // Prefetch the public branding so the login/onboarding logo and app name // render correctly on the server (no flash of default branding). await helpers.whitelabeling.getPublic.prefetch(); + await helpers.sso.showSignInWithSSO.prefetch(); if (IS_CLOUD) { try {