mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-08 21:15:17 +00:00
- 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.
22 lines
471 B
TypeScript
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)}` : ""
|
|
}`,
|
|
},
|
|
};
|
|
}
|