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_kitno longer writesconfig :phoenix_kit, PhoenixKit.Maileraboveimport Configinconfig/runtime.exs. On a stock Phoenix 1.7+ app (simpledev.exsplus aruntime.exsthat callsSystem.get_env— everymix phx.newtree) the installer preferredruntime.exsand inserted the Local adapter at line 1, before theimport Configthat definesconfig/3. The next boot then died withundefined function config/3 (there is no such import). The Local adapter now lands inconfig/dev.exson that layout. When the installer does writeruntime.exs(no simpledev.exs), the block is placed afterimport Configand wrapped inif config_env() == :dev.mix phoenix_kit.updaterelocates anyconfigcalls that already sit aboveimport Configand wraps the unguarded 2.13.6 Local adapter inif 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.