Skip to content

Manage Shared Config Constants

Shared config constants are global values managed in Strapi that are available in every questionnaire. They are used for regulatory thresholds, company branding, and other values that appear across multiple insurance products.

The following constants are currently defined:

Constant Current Value Description
featherName Feather Insurance Company display name
privateHealthInsuranceThreshold 77400 Annual income threshold for private health eligibility
miniJobThreshold 7236 Annual mini-job income threshold

1. Reference shared constants in question text

Section titled “1. Reference shared constants in question text”

Use the constant name directly in double curly braces — no prefix needed:

You are eligible for private health insurance if your annual
gross income exceeds {{privateHealthInsuranceThreshold}} EUR.

This differs from questionnaire-specific constants, which require the {{constants.myConstant}} prefix.

During sync, each questionnaire file merges shared config with questionnaire-specific constants:

constants: { ...sharedConfig, ...constants },

Shared config is loaded first, then questionnaire-specific constants override any matching keys. This means a questionnaire can override a shared value if needed.

  1. Open Strapi and navigate to Content Manager > Shared config.
  2. Edit the value you want to change.
  3. Publish the change.
  4. Notify engineering in the #birdhouse Slack channel so they can run a content sync.
  • Annually: Regulatory thresholds (e.g., privateHealthInsuranceThreshold, miniJobThreshold) change with each calendar year
  • Rebranding: Company name changes
  • Regulatory changes: New thresholds or limits introduced by law

5. Shared config vs questionnaire-specific constants

Section titled “5. Shared config vs questionnaire-specific constants”
Feature Shared config Questionnaire constants
Scope All questionnaires Single questionnaire
Strapi location Shared config content type Questionnaire metadata > constants
Interpolation syntax {{constantName}} {{constants.constantName}}
Override behavior Can be overridden per questionnaire Takes precedence over shared config