Dev 1.3.1 #114

Merged
LukeGus merged 38 commits from dev-1.3.1 into main 2025-08-28 06:00:48 +00:00
Showing only changes of commit 94e6617638 - Show all commits

View File

@@ -274,7 +274,11 @@ export const Terminal = forwardRef<any, SSHTerminalProps>(function SSHTerminal(
const cols = terminal.cols;
const rows = terminal.rows;
const wsUrl = import.meta.env.DEV
const isDev = process.env.NODE_ENV === 'development' &&
(window.location.port === '3000' || window.location.port === '5173' || window.location.port === '');
const wsUrl = isDev
? 'ws://localhost:8082'
: `${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${window.location.host}/ssh/websocket/`;