From e36aac560c34fd8f78a91ac349600b90d02f037c Mon Sep 17 00:00:00 2001 From: Kenneth Date: Mon, 2 Dec 2024 22:08:20 +0000 Subject: [PATCH] fix: detect host name using window.location --- .github/workflows/release.yml | 0 web/src/workspaces/workspace-info-dialog.tsx | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e69de29 diff --git a/web/src/workspaces/workspace-info-dialog.tsx b/web/src/workspaces/workspace-info-dialog.tsx index 9b3dfc4..6a563d9 100644 --- a/web/src/workspaces/workspace-info-dialog.tsx +++ b/web/src/workspaces/workspace-info-dialog.tsx @@ -53,7 +53,8 @@ function SshTab() {
{workspace.sshPort}

Command

-				ssh -p {workspace.sshPort} testuser@{import.meta.env.VITE_HOST_NAME}
+				ssh -p {workspace.sshPort} testuser@
+				{import.meta.env.VITE_HOST_NAME || window.location.hostname}
 			
);