razzle-plugin-machine-env

1.0.2 • Public • Published

razzle-plugin-machine-env

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.

Get started 🚀🚀🚀

1. Installation

yarn add razzle-plugin-machine-env

2. Implementation

If you don't have one already, create a razzle.config.jsfile in the root directory of your project and add the following code:

'use strict';
 
module.exports = {
  plugins: ['machine-env']
};

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i razzle-plugin-machine-env

      Weekly Downloads

      10

      Version

      1.0.2

      License

      MIT

      Unpacked Size

      2.22 kB

      Total Files

      3

      Last publish

      Collaborators

      • freddyamsterdam