Boolean and multivariate flags are helpful for dynamic values that differ from user to user, but sometimes you need a simple way to pass configuration related to your application without having to make code changes or redeploy your app.
Remote config flags enable you to configure a simple flag that always returns the same payload wherever it is called:
const themedLogoUrl = posthog.getFeatureFlagPayload('company-holiday-logo-url')
You can think of remote config flags as multivariate flags with a single variant which is served for all flag requests. By default, enabled remote config flags roll out to 100% of all users.
Note: Remote config flags are meant to always serve payloads and be called with the flag payload function in each SDK. If
getFeatureFlag
is called instead, the SDK simply returnstrue