Skip to content

Share local D1 state across worktrees#10

Merged
stylessh merged 2 commits into
mainfrom
stylessh/shared-local-db
Apr 7, 2026
Merged

Share local D1 state across worktrees#10
stylessh merged 2 commits into
mainfrom
stylessh/shared-local-db

Conversation

@stylessh
Copy link
Copy Markdown
Owner

@stylessh stylessh commented Apr 7, 2026

This changes local Cloudflare persistence so all worktrees share the same D1 state instead of each checkout getting its own local database. It adds a small helper that resolves a shared Wrangler state directory from the git common dir, uses that path in the dashboard Vite Cloudflare plugin, and points the local D1 migration command at the same directory. This keeps local env vars and local database state aligned across Conductor worktrees.

@stylessh stylessh merged commit b745152 into main Apr 7, 2026
1 check passed
stylessh added a commit that referenced this pull request Apr 18, 2026
* Share local D1 state across worktrees

* Only share local D1 state in worktrees
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.

1 participant