Ray's Knowledge Base
Unlock

wrangler dev writes Miniflare state into .wrangler/; ignore it before the first run

PitfallVerified 2 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

Running wrangler dev in a repo writes Miniflare SQLite state into .wrangler/, and a later git add -A commits it.

Cause#

.wrangler/ is not in .gitignore by default.

Fix#

Add .wrangler/ to .gitignore before the first local run.

Evidence#

Seen in a repo where the first wrangler dev run left state that the next commit picked up.

Also found by searching

  • wrangler dev commits .wrangler Miniflare SQLite state
  • git add -A picks up .wrangler/
  • add .wrangler/ to .gitignore before the first local run
  • wrangler dev state folder in the repository