Skip to content

Commit 3df3090

Browse files
committed
script args before config file
1 parent 5026385 commit 3df3090

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-scripts-ssr",
3-
"version": "0.1.9",
3+
"version": "0.1.10",
44
"repository": "https://github.com/leanjscom/react-scripts-ssr",
55
"license": "MIT",
66
"engines": {

scripts/proxy.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ try {
4444
}
4545

4646
const WEB_HOST =
47-
customHttpProxyConfig.proxy.webHost || program.webHost || "localhost";
47+
program.webHost || customHttpProxyConfig.proxy.webHost || "localhost";
4848
const WEB_PORT =
49-
customHttpProxyConfig.proxy.webPort || program.webPort || "3000";
49+
program.webPort || customHttpProxyConfig.proxy.webPort || "3000";
5050
const WEB_URL = `http://${WEB_HOST}:${WEB_PORT}`;
5151
const API_URL =
52-
customHttpProxyConfig.proxy.apiUrl ||
5352
program.apiUrl ||
53+
customHttpProxyConfig.proxy.apiUrl ||
5454
"http://localhost:8080";
5555
const PROXY_PORT =
56-
customHttpProxyConfig.proxy.proxyPort || program.proxyPort || 5050;
56+
program.proxyPort || customHttpProxyConfig.proxy.proxyPort || 5050;
5757
const PROXY_HOST =
58-
customHttpProxyConfig.proxy.proxyHost || program.proxyHost || "localhost";
58+
program.proxyHost || customHttpProxyConfig.proxy.proxyHost || "localhost";
5959

6060
const proxy = httpProxy.createProxyServer({
6161
ws: true,

0 commit comments

Comments
 (0)