mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-02 07:48:49 +00:00
refactor(dokploy): add ssr for settings to show instantly the sidebar
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user