fix: detect host name using window.location

This commit is contained in:
2024-12-02 22:08:20 +00:00
parent 9493062d09
commit e36aac560c
2 changed files with 2 additions and 1 deletions

0
.github/workflows/release.yml vendored Normal file
View File

View File

@@ -53,7 +53,8 @@ function SshTab() {
<pre>{workspace.sshPort}</pre> <pre>{workspace.sshPort}</pre>
<p className="text-sm text-muted-foreground mt-4">Command</p> <p className="text-sm text-muted-foreground mt-4">Command</p>
<pre> <pre>
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}
</pre> </pre>
</TabContainer> </TabContainer>
); );