Skip to content

Commit 6e50886

Browse files
docs(frontend): Fix HMR configuration example to match actual implementation
The README documentation showed incorrect HMR clientPort configuration using process.env instead of the env variable from loadEnv. Changes: - Update clientPort example to use env.WDS_SOCKET_PORT (not process.env) - Change from falsy coalescing to explicit conditional check - Ensure documentation matches vite.config.js implementation Addresses CodeRabbit feedback on PR #1607. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7d5c997 commit 6e50886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ server: {
323323
},
324324
hmr: {
325325
port: 3000,
326-
clientPort: Number(process.env.WDS_SOCKET_PORT) || 3000,
326+
clientPort: env.WDS_SOCKET_PORT ? Number(env.WDS_SOCKET_PORT) : 3000,
327327
},
328328
}
329329
```

0 commit comments

Comments
 (0)