Files
Bkk1234 0426b8e953 chore(repo): add .gitignore for secrets/data + bump sw.js VERSION to v2.1.1
Ignore credential and private-key files, the real content data directory
(data/ holds phone numbers, emails, addresses), backups/logs that can carry
that data, plus build/dependency artifacts for future source work.
No tracked file matches a new rule; published export files stay tracked.
Bump sw.js VERSION to v2.1.1 so the cache-first /assets/ rule refreshes.
2026-11-22 22:34:54 +07:00

80 lines
2.1 KiB
Plaintext

# .gitignore — repo นี้ publish static export ที่ราก repo
# เป้าหมาย: กันข้อมูลอ่อนไหว (credential/ข้อมูลจริง) หลุดขึ้น Git และกัน artifact ที่ไม่ควรอยู่ใน repo
# ใช้กับ git บน Windows (core.autocrlf=true) — ไฟล์นี้ควรเป็น LF เสมอ
# ── ข้อมูลอ่อนไหว / credential ─────────────────────────────
.env
.env.*
!.env.example
.envrc
*.pem
*.key
*.p12
*.pfx
*.jks
*.keystore
*.kdbx
secrets/
.secrets/
*credential*
*cookie*.txt
_cookiejar.txt
.npmrc.local
.npmrc
id_rsa*
id_ed25519*
*.token
# ── ข้อมูลจริงของโปรเจกต์ (content.json มีเบอร์/อีเมล/ที่อยู่จริง) ──
data/
data.local/
data/uploads/
uploads/
# ── ไฟล์สำรอง/ชั่วคราวที่มักมีข้อมูลจริงติดมา ────────────────
*.bak
*.bak-*
*.orig
*.rej
*.tmp
*.temp
*.swp
*.log
*.pid
npm-debug.log*
pnpm-debug.log*
# ── build / dependency (กรณีกลับมาแก้ source ในโฟลเดอร์นี้) ──
node_modules/
.pnpm-store/
.output/
build/
build.old/
dist/
static-export/
.vite/
.cache/
.turbo/
coverage/
*.tsbuildinfo
# ── Python (สคริปต์ช่วยงาน) ─────────────────────────────────
__pycache__/
*.py[cod]
.venv/
venv/
# ── เครื่องมือแก้ไข / OS ───────────────────────────────────
.vscode/
.idea/
.claude/settings.local.json
.DS_Store
Thumbs.db
desktop.ini
# ── ไฟล์เฉพาะเครื่องนี้ (hardcode path / ไว้ทดสอบ) ──────────
dev.cmd
*.local.*
probe-*
browser_harness_probe*