package.json: add run script for stage env

A developer can now run `npm run stage` which will run the UI against
the staging environment on crc.
This commit is contained in:
Jacob Kozol 2022-02-28 15:11:32 +01:00 committed by Sanne Raymaekers
parent 350acbd21b
commit dc98e58ba5
3 changed files with 11 additions and 1 deletions

View file

@ -8,7 +8,7 @@ const webpackProxy = {
useProxy: true,
proxyVerbose: true,
debug: true,
env: `prod-${process.env.BETA ? 'beta' : 'stable'}`,
env: `${process.env.STAGE ? 'stage' : 'prod'}-${process.env.BETA ? 'beta' : 'stable'}`,
appUrl: process.env.BETA ? '/beta/insights/image-builder' : '/insights/image-builder',
};