react-env
envcli
react-env | envcli | |
---|---|---|
3 | 1 | |
297 | 2 | |
- | - | |
0.0 | 5.4 | |
about 1 year ago | 11 months ago | |
JavaScript | JavaScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-env
- Runtime variables vs build time variables in ReactJS
-
Docker build per environment vs. single build for all environments
Runtime env vars.
-
Bundle environment variables in create-react-app at launch time (not build time)!
This package does the same for Next.js. It's actually a very simple concept that can be done without the package tbh. We use an older version at my work and there's a few challenges (ie11 support which thank God is becoming less of an issue) also the package ingests the env vars in a different order than Next.js which can be a trip at first. The second complaint can be solved by a home grown solution lol.
envcli
What are some alternatives?
envsafe - 🔒 Makes sure you don't accidentally deploy apps with missing or invalid environment variables.
infisical-cli - ♾ Infisical is an open-source, E2EE tool to sync environment variables across your team and infrastructure. [Moved to: https://github.com/Infisical/infisical]
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
node-convict - Featureful configuration management library for Node.js
mocktail - Free, 11MB, containerized, self-hosted mock server.
dotenv-webpack - A secure webpack plugin that supports dotenv and other environment variables and only exposes what you choose and use.
cra-envs - ⚙️ Bundle env var in CRA at launch time!
dotenv-flow - Loads environment variables from .env.[development|test|production][.local] files for Node.js® projects.
Next.js - The React Framework
react-native-dotenv - Load react native environment variables using import statements for multiple env files.