"value":"\n <p>You have two or more environments and versions of your application, but you do trunk-based development, so you only have a single branch that you use on all environments.<\/p>\n\n<p>But if all environments have the same code, how can we have differences between them?<\/p>\n\n<p>What if we want a feature enabled on one environment and not the other?<\/p>\n\n<h2 id=\"feature-flags\">Feature flags<\/h2>\n\n<p>Feature flags are an approach I've previously written about. You have two branches of logic within your code, and the flow changes based on whether a flag is enabled.<\/p>\n\n<p>If a flag is enabled, execute the first block of code. Otherwise, execute the second.<\/p>\n\n<p>Now, you enable and disable the required feature flags for each environment.<\/p>\n\n<p><strong>The code is the same for all environments, but the enabled features and functionality are different.<\/strong><\/p>\n\n<p>Then, once the feature has been deployed and released in production, the feature flag can be removed.<\/p>\n\n ",
"format":"full_html",
"processed":"\n <p>You have two or more environments and versions of your application, but you do trunk-based development, so you only have a single branch that you use on all environments.<\/p>\n\n<p>But if all environments have the same code, how can we have differences between them?<\/p>\n\n<p>What if we want a feature enabled on one environment and not the other?<\/p>\n\n<h2 id=\"feature-flags\">Feature flags<\/h2>\n\n<p>Feature flags are an approach I've previously written about. You have two branches of logic within your code, and the flow changes based on whether a flag is enabled.<\/p>\n\n<p>If a flag is enabled, execute the first block of code. Otherwise, execute the second.<\/p>\n\n<p>Now, you enable and disable the required feature flags for each environment.<\/p>\n\n<p><strong>The code is the same for all environments, but the enabled features and functionality are different.<\/strong><\/p>\n\n<p>Then, once the feature has been deployed and released in production, the feature flag can be removed.<\/p>\n\n ",