config: Dev against production environment

This commit is contained in:
Sanne Raymaekers 2021-10-12 15:19:37 +02:00 committed by jkozol
parent 318a161291
commit b7be40bfe1
2 changed files with 8 additions and 5 deletions

View file

@ -8,8 +8,7 @@ const webpackProxy = {
useProxy: true,
proxyVerbose: true,
debug: true,
// change to one of ['ci-', 'qa-', 'stage-', 'prod-'] based on required env
env: `ci-${process.env.BETA ? 'beta' : 'stable'}`,
env: `prod-${process.env.BETA ? 'beta' : 'stable'}`,
appUrl: process.env.BETA ? '/beta/insights/image-builder' : '/insights/image-builder',
};