refactor(dokploy): add ssr for settings to show instantly the sidebar

This commit is contained in:
Mauricio Siu
2024-10-25 23:56:33 -06:00
parent 742e5a244d
commit e3b20268d5
13 changed files with 63 additions and 11 deletions
@@ -56,6 +56,13 @@ export async function getServerSideProps(
});
await helpers.settings.isCloud.prefetch();
await helpers.auth.get.prefetch();
if (user?.rol === "user") {
await helpers.user.byAuthId.prefetch({
authId: user.authId,
});
}
if (!user) {
return {
redirect: {