fix(agent): auto-detect wrangler config dir for monorepo CF Workers deploys #27
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/agent-wrangler-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part 2 of fixing deploy confusion. The CF Workers agent deploy ran build +
npx wrangler deployfrom the repo root unless a deployment target explicitly setappDir. Monorepos keep their wrangler config in a subdir (linear-clone:apps/web/wrangler.jsonc), so wrangler failed withCould not locate a wrangler.tomland the deploy errored opaquely.When
appDiris unset,detectWranglerDirnow scans the repo root thenapps/*andpackages/*forwrangler.{toml,jsonc,json}and deploys from there. ExplicitappDirstill wins. 4 unit tests; agent builds + tests pass.🤖 Generated with Claude Code