diff --git a/apps/dokploy/pages/dashboard/deployments.tsx b/apps/dokploy/pages/dashboard/deployments.tsx index d27e535b2..e626b0fcd 100644 --- a/apps/dokploy/pages/dashboard/deployments.tsx +++ b/apps/dokploy/pages/dashboard/deployments.tsx @@ -84,7 +84,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/home.tsx b/apps/dokploy/pages/dashboard/home.tsx index 87ade827c..a1e933abe 100644 --- a/apps/dokploy/pages/dashboard/home.tsx +++ b/apps/dokploy/pages/dashboard/home.tsx @@ -24,7 +24,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/monitoring.tsx b/apps/dokploy/pages/dashboard/monitoring.tsx index 2dfc35d2b..15f363030 100644 --- a/apps/dokploy/pages/dashboard/monitoring.tsx +++ b/apps/dokploy/pages/dashboard/monitoring.tsx @@ -95,7 +95,7 @@ export async function getServerSideProps( if (IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -104,7 +104,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId].tsx index c1d4f0eb8..01c459af7 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId].tsx @@ -1827,7 +1827,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/application/[applicationId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/application/[applicationId].tsx index 7cb888171..4c34e82ea 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/application/[applicationId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/application/[applicationId].tsx @@ -451,7 +451,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/compose/[composeId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/compose/[composeId].tsx index e18fa0c16..ecf502125 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/compose/[composeId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/compose/[composeId].tsx @@ -455,7 +455,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/libsql/[libsqlId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/libsql/[libsqlId].tsx index 867d4b234..3048f8fda 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/libsql/[libsqlId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/libsql/[libsqlId].tsx @@ -307,7 +307,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mariadb/[mariadbId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mariadb/[mariadbId].tsx index 4bd3c22e4..9c9fe7a22 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mariadb/[mariadbId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mariadb/[mariadbId].tsx @@ -336,7 +336,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mongo/[mongoId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mongo/[mongoId].tsx index 343177246..c1b7b38df 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mongo/[mongoId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mongo/[mongoId].tsx @@ -340,7 +340,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mysql/[mysqlId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mysql/[mysqlId].tsx index cec5df9c9..26af96e04 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mysql/[mysqlId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mysql/[mysqlId].tsx @@ -318,7 +318,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/postgres/[postgresId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/postgres/[postgresId].tsx index c95c15e16..611842dea 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/postgres/[postgresId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/postgres/[postgresId].tsx @@ -324,7 +324,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/redis/[redisId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/redis/[redisId].tsx index 804d99f0f..ef71a8a39 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/redis/[redisId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/redis/[redisId].tsx @@ -329,7 +329,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/projects.tsx b/apps/dokploy/pages/dashboard/projects.tsx index ac7f5dc1a..05e3dc409 100644 --- a/apps/dokploy/pages/dashboard/projects.tsx +++ b/apps/dokploy/pages/dashboard/projects.tsx @@ -56,7 +56,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/requests.tsx b/apps/dokploy/pages/dashboard/requests.tsx index aa39a2747..55af4e646 100644 --- a/apps/dokploy/pages/dashboard/requests.tsx +++ b/apps/dokploy/pages/dashboard/requests.tsx @@ -17,7 +17,7 @@ export async function getServerSideProps( if (IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -26,7 +26,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/schedules.tsx b/apps/dokploy/pages/dashboard/schedules.tsx index a639da08a..92520ce99 100644 --- a/apps/dokploy/pages/dashboard/schedules.tsx +++ b/apps/dokploy/pages/dashboard/schedules.tsx @@ -34,7 +34,7 @@ export async function getServerSideProps( if (IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -43,7 +43,7 @@ export async function getServerSideProps( if (!user || (user.role !== "owner" && user.role !== "admin")) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/ai.tsx b/apps/dokploy/pages/dashboard/settings/ai.tsx index 0dc9b203e..efd882749 100644 --- a/apps/dokploy/pages/dashboard/settings/ai.tsx +++ b/apps/dokploy/pages/dashboard/settings/ai.tsx @@ -45,7 +45,7 @@ export async function getServerSideProps( if (!user || user.role === "member") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/audit-logs.tsx b/apps/dokploy/pages/dashboard/settings/audit-logs.tsx index 1172b2c02..366aa32da 100644 --- a/apps/dokploy/pages/dashboard/settings/audit-logs.tsx +++ b/apps/dokploy/pages/dashboard/settings/audit-logs.tsx @@ -27,7 +27,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { if (!user) { return { - redirect: { destination: "/", permanent: true }, + redirect: { destination: "/", permanent: false }, }; } diff --git a/apps/dokploy/pages/dashboard/settings/billing.tsx b/apps/dokploy/pages/dashboard/settings/billing.tsx index 5afa835e0..40ed5dc98 100644 --- a/apps/dokploy/pages/dashboard/settings/billing.tsx +++ b/apps/dokploy/pages/dashboard/settings/billing.tsx @@ -23,7 +23,7 @@ export async function getServerSideProps( if (!IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -33,7 +33,7 @@ export async function getServerSideProps( if (!user || user.role !== "owner") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/certificates.tsx b/apps/dokploy/pages/dashboard/settings/certificates.tsx index e0920611b..f9bdce2e2 100644 --- a/apps/dokploy/pages/dashboard/settings/certificates.tsx +++ b/apps/dokploy/pages/dashboard/settings/certificates.tsx @@ -28,7 +28,7 @@ export async function getServerSideProps( if (!user || user.role === "member") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/cluster.tsx b/apps/dokploy/pages/dashboard/settings/cluster.tsx index 7404227da..a69db5b0c 100644 --- a/apps/dokploy/pages/dashboard/settings/cluster.tsx +++ b/apps/dokploy/pages/dashboard/settings/cluster.tsx @@ -27,7 +27,7 @@ export async function getServerSideProps( if (IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -36,7 +36,7 @@ export async function getServerSideProps( if (!user || user.role === "member") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/destinations.tsx b/apps/dokploy/pages/dashboard/settings/destinations.tsx index f7ba1e78d..ff4637c45 100644 --- a/apps/dokploy/pages/dashboard/settings/destinations.tsx +++ b/apps/dokploy/pages/dashboard/settings/destinations.tsx @@ -28,7 +28,7 @@ export async function getServerSideProps( if (!user || user.role === "member") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/git-providers.tsx b/apps/dokploy/pages/dashboard/settings/git-providers.tsx index 492f0b850..731ef0887 100644 --- a/apps/dokploy/pages/dashboard/settings/git-providers.tsx +++ b/apps/dokploy/pages/dashboard/settings/git-providers.tsx @@ -27,7 +27,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -53,7 +53,7 @@ export async function getServerSideProps( if (!userPermissions?.gitProviders.read) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/invoices.tsx b/apps/dokploy/pages/dashboard/settings/invoices.tsx index 13d61401c..5ff4f62e7 100644 --- a/apps/dokploy/pages/dashboard/settings/invoices.tsx +++ b/apps/dokploy/pages/dashboard/settings/invoices.tsx @@ -23,7 +23,7 @@ export async function getServerSideProps( if (!IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -33,7 +33,7 @@ export async function getServerSideProps( if (!user || user.role !== "owner") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/license.tsx b/apps/dokploy/pages/dashboard/settings/license.tsx index 6a0f0f854..92ab9a8e5 100644 --- a/apps/dokploy/pages/dashboard/settings/license.tsx +++ b/apps/dokploy/pages/dashboard/settings/license.tsx @@ -38,7 +38,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -46,7 +46,7 @@ export async function getServerSideProps( if (user.role !== "owner") { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/settings/profile", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/notifications.tsx b/apps/dokploy/pages/dashboard/settings/notifications.tsx index f5e1a2d23..a14ad4de0 100644 --- a/apps/dokploy/pages/dashboard/settings/notifications.tsx +++ b/apps/dokploy/pages/dashboard/settings/notifications.tsx @@ -28,7 +28,7 @@ export async function getServerSideProps( if (!user || user.role === "member") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/profile.tsx b/apps/dokploy/pages/dashboard/settings/profile.tsx index b02d59c0e..623e66d9c 100644 --- a/apps/dokploy/pages/dashboard/settings/profile.tsx +++ b/apps/dokploy/pages/dashboard/settings/profile.tsx @@ -54,7 +54,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/registry.tsx b/apps/dokploy/pages/dashboard/settings/registry.tsx index 7d15561e1..b13b458dc 100644 --- a/apps/dokploy/pages/dashboard/settings/registry.tsx +++ b/apps/dokploy/pages/dashboard/settings/registry.tsx @@ -28,7 +28,7 @@ export async function getServerSideProps( if (!user || user.role === "member") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/server.tsx b/apps/dokploy/pages/dashboard/settings/server.tsx index caf283fb2..bd878c64c 100644 --- a/apps/dokploy/pages/dashboard/settings/server.tsx +++ b/apps/dokploy/pages/dashboard/settings/server.tsx @@ -44,7 +44,7 @@ export async function getServerSideProps( if (IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -53,7 +53,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -61,7 +61,7 @@ export async function getServerSideProps( if (user.role === "member") { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/settings/profile", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/servers.tsx b/apps/dokploy/pages/dashboard/settings/servers.tsx index 9912f1e82..b36094338 100644 --- a/apps/dokploy/pages/dashboard/settings/servers.tsx +++ b/apps/dokploy/pages/dashboard/settings/servers.tsx @@ -28,7 +28,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -36,7 +36,7 @@ export async function getServerSideProps( if (user.role === "member") { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/settings/profile", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/ssh-keys.tsx b/apps/dokploy/pages/dashboard/settings/ssh-keys.tsx index 72ac60280..a0e093087 100644 --- a/apps/dokploy/pages/dashboard/settings/ssh-keys.tsx +++ b/apps/dokploy/pages/dashboard/settings/ssh-keys.tsx @@ -27,7 +27,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -54,7 +54,7 @@ export async function getServerSideProps( if (!userPermissions?.sshKeys.read) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/sso.tsx b/apps/dokploy/pages/dashboard/settings/sso.tsx index 4203d7725..60de6de0c 100644 --- a/apps/dokploy/pages/dashboard/settings/sso.tsx +++ b/apps/dokploy/pages/dashboard/settings/sso.tsx @@ -46,7 +46,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -54,7 +54,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { if (user.role === "member") { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/settings/profile", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/tags.tsx b/apps/dokploy/pages/dashboard/settings/tags.tsx index d22d30c78..57f99070c 100644 --- a/apps/dokploy/pages/dashboard/settings/tags.tsx +++ b/apps/dokploy/pages/dashboard/settings/tags.tsx @@ -47,7 +47,7 @@ export async function getServerSideProps( if (!userPermissions?.tag.read) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/users.tsx b/apps/dokploy/pages/dashboard/settings/users.tsx index a3bd953d1..e32839084 100644 --- a/apps/dokploy/pages/dashboard/settings/users.tsx +++ b/apps/dokploy/pages/dashboard/settings/users.tsx @@ -39,7 +39,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -66,7 +66,7 @@ export async function getServerSideProps( if (!userPermissions?.member.read) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/settings/whitelabeling.tsx b/apps/dokploy/pages/dashboard/settings/whitelabeling.tsx index 09d5e3e20..aa7cf738b 100644 --- a/apps/dokploy/pages/dashboard/settings/whitelabeling.tsx +++ b/apps/dokploy/pages/dashboard/settings/whitelabeling.tsx @@ -46,7 +46,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -54,7 +54,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { if (user.role !== "owner") { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/settings/profile", }, }; diff --git a/apps/dokploy/pages/dashboard/swarm.tsx b/apps/dokploy/pages/dashboard/swarm.tsx index 9cc4c81d5..c8a5a4bf1 100644 --- a/apps/dokploy/pages/dashboard/swarm.tsx +++ b/apps/dokploy/pages/dashboard/swarm.tsx @@ -45,7 +45,7 @@ export async function getServerSideProps( if (IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -54,7 +54,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -80,7 +80,7 @@ export async function getServerSideProps( if (!userPermissions?.docker.read) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/dashboard/traefik.tsx b/apps/dokploy/pages/dashboard/traefik.tsx index d91ef8530..0b6a7a477 100644 --- a/apps/dokploy/pages/dashboard/traefik.tsx +++ b/apps/dokploy/pages/dashboard/traefik.tsx @@ -23,7 +23,7 @@ export async function getServerSideProps( if (IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -32,7 +32,7 @@ export async function getServerSideProps( if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -58,7 +58,7 @@ export async function getServerSideProps( if (!userPermissions?.traefikFiles.read) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/index.tsx b/apps/dokploy/pages/index.tsx index 14d727e77..5f6f48728 100644 --- a/apps/dokploy/pages/index.tsx +++ b/apps/dokploy/pages/index.tsx @@ -407,7 +407,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { if (user) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; @@ -425,7 +425,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { if (!hasAdmin) { return { redirect: { - permanent: true, + permanent: false, destination: "/register", }, }; @@ -436,7 +436,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { if (user) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; diff --git a/apps/dokploy/pages/invitation.tsx b/apps/dokploy/pages/invitation.tsx index 2a342a5a2..1cbd773b7 100644 --- a/apps/dokploy/pages/invitation.tsx +++ b/apps/dokploy/pages/invitation.tsx @@ -333,7 +333,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { // if (IS_CLOUD) { // return { // redirect: { - // permanent: true, + // permanent: false, // destination: "/", // }, // }; @@ -342,7 +342,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { if (typeof token !== "string") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -365,7 +365,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { if (invitation.isExpired) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -382,7 +382,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { console.log("error", error); return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/register.tsx b/apps/dokploy/pages/register.tsx index 1397a39e5..865a7b75d 100644 --- a/apps/dokploy/pages/register.tsx +++ b/apps/dokploy/pages/register.tsx @@ -302,7 +302,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { if (user) { return { redirect: { - permanent: true, + permanent: false, destination: "/dashboard/home", }, }; diff --git a/apps/dokploy/pages/reset-password.tsx b/apps/dokploy/pages/reset-password.tsx index 3bc5593b0..eff238979 100644 --- a/apps/dokploy/pages/reset-password.tsx +++ b/apps/dokploy/pages/reset-password.tsx @@ -190,7 +190,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { if (!IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -200,7 +200,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { if (typeof token !== "string") { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/send-reset-password.tsx b/apps/dokploy/pages/send-reset-password.tsx index e4c315c60..63154d050 100644 --- a/apps/dokploy/pages/send-reset-password.tsx +++ b/apps/dokploy/pages/send-reset-password.tsx @@ -168,7 +168,7 @@ export async function getServerSideProps(_context: GetServerSidePropsContext) { if (!IS_CLOUD) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; diff --git a/apps/dokploy/pages/swagger.tsx b/apps/dokploy/pages/swagger.tsx index b461a85ec..2aeb0eff3 100644 --- a/apps/dokploy/pages/swagger.tsx +++ b/apps/dokploy/pages/swagger.tsx @@ -82,7 +82,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { if (!user) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, }; @@ -103,7 +103,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { if (!userPermissions?.api.read) { return { redirect: { - permanent: true, + permanent: false, destination: "/", }, };