This plugin enables the usage of machine environment variables in the client side of your Razzle powered isomorphic (React) applications.
This is particularly useful when passing environment variables to Docker containers.
yarn add razzle-plugin-machine-env
If you don't have one already, create a razzle.config.js
file in the root directory of your project and add the following code:
'use strict';
module.exports = {
plugins: ['machine-env']
};