Skip to content

Commit dd888b0

Browse files
committed
refactor(vite): adjust HMR config and clean duplicate env var
Updates the Vite HMR settings to set protocol, host, and port explicitly for WebSocket stability. Also removes duplicate SSH_AUTH_SOCK entry from devcontainer Docker compose to reduce redundancy.
1 parent 2c53cb1 commit dd888b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.devcontainer/dev.docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ services:
1818
BIN_DEPLOY_REQ: ${BIN_DEPLOY_REQ}
1919
SSH_AUTH_SOCK: /ssh-agent
2020
BUN_BIN: ${BUN_BIN_R}
21-
SSH_AUTH_SOCK: /ssh-agent
2221
volumes:
2322
- ${SSH_AUTH_SOCK:-/dev/null}:/ssh-agent
2423
- .:/workspace

packages/presentation/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ function createDefaultServer(): PreviewOptions | ServerOptions {
129129
strictPort: true,
130130
fs: { strict: false },
131131
hmr: {
132+
protocol: 'ws',
133+
host: 'localhost',
134+
port: getNginxPort(),
132135
clientPort: getNginxPort(),
133136
path: '/_ws',
134137
},

0 commit comments

Comments
 (0)