From 1cfd51f94738996b445cbbc00ca0830af2fb57ca Mon Sep 17 00:00:00 2001 From: Jarl Lyng Date: Wed, 6 May 2026 13:17:53 +0200 Subject: [PATCH] Ignore .env / .env.local and the .vercel/ link directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Local development with `vercel dev` writes Turso credentials to .env.local via `vercel env pull`. Without this rule, an accidental `git add .` would ship those tokens. .vercel/ holds the project link and is never useful in the repo either. No .env file is required for normal frontend development — `python3 -m http.server` works without one and `stats.js` silently no-ops if /api is unreachable. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index bc20d7b..6f24364 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,10 @@ node_modules/ *.log .vscode/ .idea/ + +# Local environment — Vercel writes credentials to .env.local on `vercel env pull`. +# Never commit any flavor of these. +.env +.env.local +.env.*.local +.vercel/