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.
This commit is contained in:
1 parent
1078c50249
commit
0426b8e953
3 files changed
+80
-1
No files matched your search
+79
@@ -0,0 +1,79 @@
|
||||
# .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*
|
||||
Reference in new issue
Block a user