Skip to content

Commit d9b9d98

Browse files
fix: user server port for websocket connection by default
1 parent c4279c2 commit d9b9d98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/DevServerPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class DevServerPlugin {
4949

5050
/** @type {string} */
5151
const port =
52-
options.client && options.client.port
53-
? `&port=${options.client.port}`
52+
(options.client && options.client.port) || options.port
53+
? `&port=${options.client.port || options.port}`
5454
: '';
5555

5656
/** @type {string} */

0 commit comments

Comments
 (0)