Skip to content

Allow specfying pattern were to include config line #316

@juanazam

Description

@juanazam

Is your feature request related to a problem? Please describe.

Modify Igniter.Project.Config.configure/6 to allow a pattern to be passes so the configuration can be added within a specific block of the file passed as argument.

This is particularly useful when a config needs to be added to runtime.exs but within the if config_env() == :prod do block.

Describe the solution you'd like

There are existing implementations out there

Tower implementations:
mimiquate/tower_rollbar#86
mimiquate/tower_sentry#66
mimiquate/tower_bugsnag#60

Ash postgres: https://github.com/ash-project/ash_postgres/blob/main/lib/mix/tasks/ash_postgres.install.ex#L169-L179

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions