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

@ -21,6 +21,15 @@ Make sure you have npm@7 and node 15+ installed. If you need multiple versions o
3. open browser at `https://prod.foo.redhat.com:1337/beta/insights/image-builder`
### Webpack proxy (staging) -- *Runs with image-builder's stage deployment*
1. run `npm ci`
2. run `npm run stage`. This command uses a stage-beta env by default. Configure your
environment by the `env` attribute in `dev.webpack.config.js`.
3. open browser at `https://stage.foo.redhat.com:1337/beta/insights/image-builder`
### Insights proxy (deprecated)
1. Clone the insights proxy: https://github.com/RedHatInsights/insights-proxy