0
sinancondo created
https://github.com/abpframework/abp/pull/24034 Want to make sure we can now enable/disable feature flag from appsettings.json
2 Answer(s)
-
0
Can we enable or disable feature flag in appsettings.json in ABP 10.1 ?
-
0
- In ABP 10.1.0, there is no built-in feature value provider that reads feature flags from
appsettings.json. ABP’s feature system is designed to resolve feature values from providers like the Feature Management module store (database) and related providers, not from application configuration. - So, you can’t enable/disable ABP features via
appsettings.jsonout-of-the-box in 10.1.0. - If PR abpframework/abp#24034 adds an
appsettings.json-based feature provider (or similar), that would need to be included in 10.1.x after the PR was merged. From the information I can verify here, I can’t confirm that this PR is included in 10.1.0.
If you want config-based flags today, the verified approach in ABP is to use the Feature Management module UI/API (which persists values), or implement your own custom
IFeatureValueProvider(if available in your ABP version) that reads fromIConfigurationand register it.Links (validated):
- https://abp.io/docs/10.1/framework/infrastructure/features
- https://abp.io/docs/10.1/modules/feature-management
- https://github.com/abpframework/abp/pull/24034
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
- In ABP 10.1.0, there is no built-in feature value provider that reads feature flags from