Milos Bejda - All Things Automated

Environmental Configurations for Frontend Development

Every developer is going to have their own environment configuration tuned to their needs to get their work done. Setting up client-side configurations can be tricky because you can't leverage server-side operations. Here is a quick and easy way to setup up environmental configurations on the client side for your front-end development team.

Create an environmental __env.js file in the root of the client side app directory. Add environment specific code into the __env.js and attach it to the window.