mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-10-15 13:21:11 +00:00
fix(auth): prefetch SSO state in SSR to prevent layout flash
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user