Company
Date Published
Author
Brian Rinaldi
Word count
2409
Language
English
Hacker News points
None

Summary

Feature flags are a great way to give developers more control over features, but integrating them with static assets can be challenging. This article explores how to connect LaunchDarkly feature flags with Netlify's build process automatically, without requiring developer intervention. The solution involves setting up LaunchDarkly projects and environments, tagging flags with build-impact, and using Netlify's branch deploys and deploy hooks to trigger builds when necessary. The integration also involves using environment variables and security policies to ensure that only relevant flags are triggered for each deploy context. With this setup, developers can enable or disable features publicly, launch new pages aligned with marketing campaigns, and control the rollout of user-specific targeting without requiring developer intervention.