feat(multi server): add env and toggle dashboard remote

This commit is contained in:
Mauricio Siu
2024-09-21 01:44:31 -06:00
parent 497d45129c
commit 8bf6a22db8
7 changed files with 102 additions and 52 deletions

View File

@@ -3,7 +3,7 @@ import { docker } from "@/server/constants";
import Dockerode from "dockerode";
import { readSSHKey } from "../filesystem/ssh";
export const getRemoteDocker = async (serverId: string | null) => {
export const getRemoteDocker = async (serverId?: string | null) => {
if (!serverId) return docker;
const server = await findServerById(serverId);
if (!server.sshKeyId) return docker;