config/dev: run proxy without VPN for production envs

This allows users to develop against production without having access to
the internal network.

62f37029ca/packages/config (running-prod-proxy-without-vpn)
This commit is contained in:
Sanne Raymaekers 2023-03-24 15:57:25 +01:00
parent f92cae1fc2
commit 49b3f04ea2

View file

@ -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'