Files
dokploy/apps/dokploy/pages/dashboard/networks.tsx
T
Mauricio Siu 8637acb56c refactor: simplify SwarmMonitorCard logic and update dashboard structure
- Refactored SwarmMonitorCard to use optional chaining for node data handling.
- Consolidated loading and error states into a single conditional rendering block.
- Updated dashboard layout to include tabs for containers and swarm, enhancing navigation.
- Removed deprecated network-related code from the dashboard.
2026-08-09 12:28:22 -06:00

22 lines
471 B
TypeScript

import type { GetServerSidePropsContext } from "next";
const Networks = () => {
return null;
};
export default Networks;
export async function getServerSideProps(ctx: GetServerSidePropsContext) {
const serverId =
typeof ctx.query.serverId === "string" ? ctx.query.serverId : undefined;
return {
redirect: {
permanent: false,
destination: `/dashboard/docker?tab=networks${
serverId ? `&serverId=${encodeURIComponent(serverId)}` : ""
}`,
},
};
}