Noop Today
  • Home
  • About
  • Services
Sign in Subscribe

configuration

A collection of 1 post
Runtime Should Depend on The Configuration, Not The Environment
configuration Featured

Runtime Should Depend on The Configuration, Not The Environment

The application runtime should not depend on the environment, but the configuration should. If you've ever written the following code, this post is for you: function doSomething(){ if (process.env.NODE_ENV === "development"){ return { foo: 1 }; } return { foo: 2 }; } Why Is That A Problem? Once you
11 Feb 2024 2 min read
Page 1 of 1
Noop Today © 2025
  • Sign up
Powered by Ghost