git.lucas.co / gitsite
the static git browser that builds this site
git clone https://git.lucas.co/gitsite.git

commitdb31ebcb4ce0ce6d3011cac200794d15360dc1c7
parent9cd48e7535
authorLucas Galante <[email protected]>
date2026-09-11 08:31
Stop tracking wrangler's local cache

.wrangler/cache/pages.json and wrangler-account.json are machine state
wrangler writes for itself -- the Cloudflare account id, the account name
(an email address) and the project name. No token: deploy.sh reads that from
~/.config/gitsite-cf-token, outside the repo. But this repo is now published,
so tracked cache state is published cache state.

The files stay on disk, so deploy.sh still works; they are only untracked.

This does not make the account id private. It remains in deploy.sh, which is
tracked deliberately, and in this repo's history either way.

 .gitignore                            | 3 +++
 .wrangler/cache/pages.json            | 4 ----
 .wrangler/cache/wrangler-account.json | 6 ------
 3 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e63d605
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+# wrangler's local cache: account id, account name and project metadata.
+# Machine state, not source -- and it lands on git.lucas.co if tracked.
+.wrangler/
diff --git a/.wrangler/cache/pages.json b/.wrangler/cache/pages.json
deleted file mode 100644
index 83f0c24..0000000
--- a/.wrangler/cache/pages.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
-  "account_id": "16cc27b259a59a98845182903fee02e4",
-  "project_name": "git-lucas-co"
-}
\ No newline at end of file
diff --git a/.wrangler/cache/wrangler-account.json b/.wrangler/cache/wrangler-account.json
deleted file mode 100644
index 54da4d5..0000000
--- a/.wrangler/cache/wrangler-account.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
-  "account": {
-    "id": "16cc27b259a59a98845182903fee02e4",
-    "name": "[email protected]'s Account"
-  }
-}
\ No newline at end of file