Skip to content

PhoenixKit 2.13.7: The installer no longer breaks config/runtime.exs

PhoenixKit 2.13.7 fixes mix igniter.install phoenix_kit on a standard mix phx.new app. The installer wrote the development mailer setting into config/runtime.exs above import Config, and the app then failed to boot with undefined function config/3.

On that layout the setting now goes into config/dev.exs. Where the installer does write runtime.exs, it places the block after import Config and only for the development environment.

Upgrading

If an earlier install broke your app this way, run mix phoenix_kit.update. It moves config calls that sit above import Config below it, and limits the Local mail adapter it had added to development, so your production mailer setting is kept.

Full release notes: PhoenixKit 2.13.7

2.13.7 · 22 August 2026

Fixed

  • mix igniter.install phoenix_kit no longer writes config :phoenix_kit, PhoenixKit.Mailer above import Config in config/runtime.exs. On a stock Phoenix 1.7+ app (simple dev.exs plus a runtime.exs that calls System.get_env — every mix phx.new tree) the installer preferred runtime.exs and inserted the Local adapter at line 1, before the import Config that defines config/3. The next boot then died with undefined function config/3 (there is no such import). The Local adapter now lands in config/dev.exs on that layout. When the installer does write runtime.exs (no simple dev.exs), the block is placed after import Config and wrapped in if config_env() == :dev. mix phoenix_kit.update relocates any config calls that already sit above import Config and wraps the unguarded 2.13.6 Local adapter in if config_env() == :dev, so a host that hit this on 2.13.6 boots again after upgrading without overriding production mailer config.

PhoenixKit 2.13.7. Install or update: {:phoenix_kit, "~> 2.13"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.