[object Object]

← back to Web Viewer 3877

fix .gitignore: expand broken literal "\n" line + dedupe + add snapshot patterns

83bda2d7683895224a06e536fbc02a9ac5696e01 · 2026-05-19 21:36:07 -0700 · steve

Line 1 was a single 39-char string containing literal backslash-n sequences
("node_modules/\n.next/\n…") that never got expanded — ignored nothing real.
Replaced with proper newline-separated entries, deduped node_modules / .env*
/ *.log / dist / .next blocks, added snapshot-file patterns to match the new
404-guard middleware.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 83bda2d7683895224a06e536fbc02a9ac5696e01
Author: steve <steve@designerwallcoverings.com>
Date:   Tue May 19 21:36:07 2026 -0700

    fix .gitignore: expand broken literal "\n" line + dedupe + add snapshot patterns
    
    Line 1 was a single 39-char string containing literal backslash-n sequences
    ("node_modules/\n.next/\n…") that never got expanded — ignored nothing real.
    Replaced with proper newline-separated entries, deduped node_modules / .env*
    / *.log / dist / .next blocks, added snapshot-file patterns to match the new
    404-guard middleware.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
 .gitignore | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

diff --git a/.gitignore b/.gitignore
index 4364691..28d90a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,15 +1,20 @@
-node_modules/\n.next/\ndist/\n.env\n*.log
-.env.local
-.env.*.local
-.env.*
-tmp/
-.DS_Store
-build/
-*.bak
-
-# Standing-rule additions (2026-05-07)
 node_modules/
+.env
 .env*
+.env.local
+.env.*.local
 *.log
+tmp/
 dist/
+build/
 .next/
+.DS_Store
+
+# Snapshot / editor / backup files (fleet-refactor-sweep standing rule)
+*.bak
+*.bak.*
+*.pre-*
+*.orig
+*.rej
+*.swp
+*~

← 3be3c67 add 404-guard middleware for snapshot/editor file patterns b  ·  back to Web Viewer 3877  ·  add lib/safe-fetch.js — SSRF-hardened wrapper around axios f15b9a4 →