Skip to content

chore(repo): ignore local .wrangler/ state directory - #57

Open
SaharPak wants to merge 1 commit into
mainfrom
handoff/local-auth-status
Open

chore(repo): ignore local .wrangler/ state directory#57
SaharPak wants to merge 1 commit into
mainfrom
handoff/local-auth-status

Conversation

@SaharPak

@SaharPak SaharPak commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

Single-line gitignore cleanup before developer handoff.

Wrangler / opennextjs-cloudflare preview leaves a miniflare cache SQLite database under .wrangler/state/. It is local runtime scratch, regenerated on every wrangler dev session, and is showing as untracked on checkouts of main.

Change

 # opennext / cloudflare build output
 /.open-next/

+# wrangler local state (preview deploys, dev mode scratch)
+/.wrangler/

 # production
 /build

Why a PR for this small change

  • Same change is already on the unmerged feat/cloudflare-adapter branch — applying it on main keeps the two aligned.
  • Without the ignore, every git status shows .wrangler/ as untracked, which is noise during a handoff.

Validation

  • npm run lint — clean
  • npm run build — clean (14 routes)
  • BASE_URL=http://localhost:3000 bash ./scripts/auth-smoke.sh — 16 passed, 0 failed
  • git status after commit — working tree clean

Out of scope

  • No code changes.
  • No auth / new-user onboarding changes (the Tech Immigrants Gmail login issue mentioned elsewhere is intentionally left for the next developer).
  • No Cloudflare deploy work.
  • No secrets, no .env.local content, no .dev.vars.

Wrangler / opennextjs-cloudflare preview leaves a miniflare cache
SQLite database under .wrangler/state/. It is local runtime scratch,
regenerated on every wrangler dev session, and should not be committed.

This was already added to .gitignore on the feat/cloudflare-adapter
branch but that branch was never merged. Apply the same ignore on
main so future checkouts do not show the directory as untracked.
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