Skip to content

Add auto-recompile for host router when external modules change#460

Merged
ddon merged 1 commit into
BeamLabEU:devfrom
mdon:dev
Mar 30, 2026
Merged

Add auto-recompile for host router when external modules change#460
ddon merged 1 commit into
BeamLabEU:devfrom
mdon:dev

Conversation

@mdon
Copy link
Copy Markdown
Contributor

@mdon mdon commented Mar 30, 2026

Inject mix_recompile?/0 into the host router via phoenix_kit_routes() macro. Uses a compile-time hash of discovered modules — when a new module dep is added or removed, the router automatically recompiles and picks up the new routes. Also registers mix.lock as @external_resource for belt-and- suspenders change detection. Documents the mechanism in AGENTS.md.

Inject __mix_recompile__?/0 into the host router via phoenix_kit_routes()
macro. Uses a compile-time hash of discovered modules — when a new module
dep is added or removed, the router automatically recompiles and picks up
the new routes. Also registers mix.lock as @external_resource for belt-and-
suspenders change detection. Documents the mechanism in AGENTS.md.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ddon ddon merged commit ef9cd32 into BeamLabEU:dev Mar 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants