Skip to content

Commit 763c7a3

Browse files
committed
let WDS_SOCKET_PATH be undefined
1 parent 16bd79f commit 763c7a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-scripts/config/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function getClientEnvironment(publicUrl) {
8989
// This lets a developer run multiple simultaneous projects.
9090
// It is used as the connection `pathname` in webpackHotDevClient.
9191
// It is used as the `sockPath` option in webpack dev server.
92-
WDS_SOCKET_PATH: process.env.WDS_SOCKET_PATH || '/sockjs-node',
92+
WDS_SOCKET_PATH: process.env.WDS_SOCKET_PATH,
9393
}
9494
);
9595
// Stringify all values so we can feed into Webpack DefinePlugin

packages/react-scripts/config/webpackDevServer.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const fs = require('fs');
1717

1818
const protocol = process.env.HTTPS === 'true' ? 'https' : 'http';
1919
const host = process.env.HOST || '0.0.0.0';
20-
const sockPath = process.env.WDS_SOCKET_PATH || undefined; // default: '/sockjs-node'
20+
const sockPath = process.env.WDS_SOCKET_PATH; // default: '/sockjs-node'
2121

2222
module.exports = function(proxy, allowedHost) {
2323
return {

0 commit comments

Comments
 (0)