From 49b3f04ea20bbb5253e97f7f2a8ccab1a9831d02 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Fri, 24 Mar 2023 15:57:25 +0100 Subject: [PATCH] config/dev: run proxy without VPN for production envs This allows users to develop against production without having access to the internal network. https://github.com/RedHatInsights/frontend-components/tree/62f37029ca0f5f7e9b0fd61815fe62c96503bcbf/packages/config#running-prod-proxy-without-vpn --- config/dev.webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/dev.webpack.config.js b/config/dev.webpack.config.js index d382e8b1..99162fb6 100644 --- a/config/dev.webpack.config.js +++ b/config/dev.webpack.config.js @@ -4,6 +4,8 @@ const config = require('@redhat-cloud-services/frontend-components-config'); const webpackProxy = { useProxy: true, + useAgent: process.env.STAGE ? true : false, + bounceProd: process.env.STAGE ? false : true, proxyVerbose: true, env: `${process.env.STAGE ? 'stage' : 'prod'}-${ process.env.BETA ? 'beta' : 'stable'