diff --git a/README.md b/README.md index b9c658e0..8a21c989 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,10 @@ ## Frontend Development To develop the frontend you can use a proxy to run image-builder-frontend locally -against the chrome and backend at cloud.redhat.com. +against the chrome and backend at console.redhat.com. + +Working against the production environment is preferred, as any work can be released without +worrying if a feature from stage has been released yet. ### Nodejs and npm version @@ -13,9 +16,10 @@ Make sure you have npm@7 and node 15+ installed. If you need multiple versions o 1. run `npm i` -2. run `npm run start:proxy:beta`. This command uses a ci-beta env by default. Configure your environment by the `env` attribute in `dev.webpack.config.js` +2. run `npm run start:proxy:beta`. This command uses a prod-beta env by default. Configure your + environment by the `env` attribute in `dev.webpack.config.js`. -3. open browser at `https://ci.foo.redhat.com:1337/beta/insights/image-builder` +3. open browser at `https://prod.foo.redhat.com:1337/beta/insights/image-builder` ### Insights proxy (deprecated) diff --git a/config/dev.webpack.config.js b/config/dev.webpack.config.js index 36496b70..b4ce3298 100644 --- a/config/dev.webpack.config.js +++ b/config/dev.webpack.config.js @@ -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', };