Environments
Point to specific environment
Sometimes you might need to point to a specific environment in order to debug or test an feature. In order to do this, the platform has a mechanism you can use to accomplish this.
By default, your local platform instance points to Investec's development environment. This is configured via a npm task that points to the development environment configuration (./io-resources/proxy/proxy.conf.dev.json) in the package.json file:
"io": "npm run... --proxy-config='io-resources/proxy/proxy.conf.dev.json' --port=8080",
In order to point your local platform instance to a specific environments, you will need to run the below command and replace ENV_HERE with the desired environment.
nx serve --project=app-platform -o --host=ng.secure.investec.com --proxy-config='io-resources/proxy/proxy.conf.ENV_HERE.json' --port=8080
There are 5 Investec environments (Excluding your local instance): test, staging, beta, production. Proxy configurations are only provided for local, development and staging as these are most frequently used.
./io-resources/proxy/proxy.conf.local.json
./io-resources/proxy/proxy.conf.dev.json
./io-resources/proxy/proxy.conf.stg.json