feat(config): support worktreeConfig in dev-proxy.config.mjs#65
Merged
Conversation
Move worktreeConfig from .dev-proxy.json into the active JS config, keeping the legacy file as a read-only fallback. The dev-proxy.config.mjs default export now accepts a `worktreeConfig` field alongside `routes`, and `dev-proxy migrate` relocates legacy entries before deleting the old JSON file. CLI commands look up worktreeConfig via the proxy config singleton, which already merges mjs + legacy at load time. Closes #64 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
reopt-lucy
approved these changes
May 22, 2026
This was referenced May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
`worktreeConfig`를 `dev-proxy.config.mjs`에서도 작성·읽을 수 있도록 통합. `.dev-proxy.json`은 read-only legacy fallback으로 격하. `dev-proxy migrate`가 legacy `worktreeConfig`를 mjs로 옮긴 뒤 옛 JSON 파일을 삭제합니다.
Why
CLAUDE.md는 mjs가 `routes + worktreeConfig`를 모두 담는다고 기술돼 있었으나, 실제 코드는 mjs에서 `worktreeConfig`를 매핑하지 않아 worktree 사용자에게만 `.dev-proxy.json`이 필수인 어색한 상태였습니다. 이제 신규 사용자는 `dev-proxy.config.mjs` + `.dev-proxy.worktrees.json` 두 파일만 인식하면 됩니다.
Changes
Backward compatibility
Test plan
Follow-up
PR B (Issue 별도)에서 SKILL.md, README, installation.md, CLAUDE.md를 이 변경에 맞춰 동기화 + DNS/worktree onboarding 갭 보강 예정.
Closes #64
🤖 Generated with Claude Code