An application needs to setup different configurations, such as for different deployment environments (dev, test, prod).
src/client/app/shared/config/env.config.ts
tools/env/
tools/env/dev.ts
test.ts
Use in application - Import and use the Config:
import { Config } from '../config/env.config'; private webServiceURL: string = Config.WEBSERVICEURL;
Run node server using configuration
npm start -- --env-config test
Observe the values
package.json
There was an error while loading. Please reload this page.