Horizon Framework

Feature Flags

Feature flags can be checked within a Horizon component by importing hasFeature from platform-core and calling the method with a feature flag name.

import { hasFeature } from '@skedulo/horizon-core'

hasFeature('my-feature-flag')

A helper is provided to the templating system for checking feature flags. Feature flags can be checked by calling _.host.hasFeature in your nunjucks template.

{{ "✅" if _.host.hasFeature("my-feature-flag") else "❌" }}