hainenber commented on code in PR #44459:
URL: https://github.com/apache/superset/pull/44459#discussion_r4147465246


##########
superset-frontend/webpack.proxy-config.js:
##########
@@ -185,7 +169,14 @@ async function processHTML(proxyResponse, response) {
   response.end(toDevHTML(Buffer.concat(chunks).toString()));
 }
 
-export default function getProxyConfig(newManifest) {
+export default function getProxyConfig(newManifest, env = {}) {
+  const parsedEnvArgs = { ...importTimeEnvVars, ...env };
+  const { supersetPort = 8088, supersetUrl = null } = parsedEnvArgs;

Review Comment:
   IMO, I think I'll go with updating docs example to match with how 
[`webpack-cli` officially handles env 
vars](https://webpack.js.org/guides/environment-variables/) 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to