Skip to content

Handles the runtime configuration injection for static js projects.

Notifications You must be signed in to change notification settings

trevorharwell/js-runtime-env-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Runtime Env Processor

Use runtime environment variables in bundled/minified javascript apps.

Build Status npm Module

Usage

Designed for create-react-app-buildpack. See its documentation to use this module for Runtime configuration.

Background

Normally javascript apps are compiled into a bundle before being deployed. During this build phase, environment variables may be embedded in the javascript bundle, such as with Webpack DefinePlugin.

When hosting on a 12-factor platform like Heroku, these embedded values may go stale when setting new config vars or promoting through a pipeline.

About

Handles the runtime configuration injection for static js projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published