Surgex v2.21.0 Surgex.Config.Patch

Patches any Mix config with Surgex.Config.

Summary

Functions

Patches current Mix config with Surgex.Config using given schema

Patches current Mix config with Surgex.Config using preconfigured schema

Functions

apply(schema)

Patches current Mix config with Surgex.Config using given schema.

Examples

Surgex.Config.Patch.apply(sentry: [
  environment: {:system, "SENTRY_ENVIRONEMNT"}
])
init()

Patches current Mix config with Surgex.Config using preconfigured schema.

Examples

In order to execute this extension on application start, set an appropriate config key:

config :surgex,
  config_patch: [
    sentry: [
      environment: {:system, "SENTRY_ENVIRONEMNT"}
    ]
  ]