fix: fixing the default port for shell on vite config

This commit is contained in:
simosmik
2025-12-27 22:48:46 +00:00
parent a8c141cb8e
commit 02c13b0794
2 changed files with 1 additions and 3 deletions

View File

@@ -220,7 +220,6 @@ function Shell({ selectedProject, selectedSession, initialCommand, isPlainShell
return;
}
console.log('[Shell] Terminal initializing, mounting component');
terminal.current = new Terminal({
cursorBlink: true,
@@ -346,7 +345,6 @@ function Shell({ selectedProject, selectedSession, initialCommand, isPlainShell
}
return () => {
console.log('[Shell] Terminal cleanup, unmounting component');
resizeObserver.disconnect();
if (ws.current && (ws.current.readyState === WebSocket.OPEN || ws.current.readyState === WebSocket.CONNECTING)) {

View File

@@ -17,7 +17,7 @@ export default defineConfig(({ command, mode }) => {
ws: true
},
'/shell': {
target: `ws://localhost:${env.PORT || 3002}`,
target: `ws://localhost:${env.PORT || 3001}`,
ws: true
}
}