We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04bd63 commit 2412114Copy full SHA for 2412114
packages/react-scripts/scripts/start.js
@@ -59,6 +59,7 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
59
// Tools like Cloud9 rely on this.
60
const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;
61
const HOST = process.env.HOST || '0.0.0.0';
62
+const PROXY = process.env.PROXY || null;
63
64
if (process.env.HOST) {
65
console.log(
@@ -121,7 +122,7 @@ checkBrowsers(paths.appPath, isInteractive)
121
122
webpack,
123
});
124
// Load proxy config
- const proxySetting = require(paths.appPackageJson).proxy;
125
+ const proxySetting = PROXY || require(paths.appPackageJson).proxy;
126
const proxyConfig = prepareProxy(
127
proxySetting,
128
paths.appPublic,
0 commit comments