Adds the full Next.js app (app/, components/, lib/, scripts/, assets/, docs/, Dockerfile, compose, configs) to version control. Security: - CIPC BizPortal customer-code logins (Login 1 + Login 3) now read CIPC_LOGIN1_CODE / CIPC_LOGIN1_PASSWORD / CIPC_LOGIN3_CODE / CIPC_LOGIN3_PASSWORD from .env.local instead of source. - BizPortal personal login in apply-bizportal route reads BIZPORTAL_ID_NO / BIZPORTAL_PASSWORD. - Added .env.example as the committed template. .gitignore excludes .env*, node_modules, .next, logs, sqlite, Playwright storage_state.json (live CIPC cookies), scratch dirs, client PDFs and debug screenshots.
67 lines
No EOL
1.6 KiB
Text
67 lines
No EOL
1.6 KiB
Text
# ---------------------------------------------------------------- secrets ---
|
|
# Never commit local credentials / API tokens.
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
*.pem
|
|
*.key
|
|
|
|
# ----------------------------------------------- deps, build & tooling ---
|
|
node_modules/
|
|
.next/
|
|
out/
|
|
dist/
|
|
build/
|
|
*.tsbuildinfo
|
|
|
|
# ------------------------------------------------- logs & runtime state ---
|
|
*.log
|
|
*.log.err
|
|
*.tmp
|
|
.runtime/
|
|
.dev-screenshots/
|
|
npm-debug.log*
|
|
|
|
# ------------------------------------------- local DBs & scratch working ---
|
|
*.sqlite
|
|
*.sqlite3
|
|
*.db
|
|
scratch-*/
|
|
_backups/
|
|
|
|
# --------------------------------- debug captures & one-off probe output ---
|
|
# Ad-hoc dumps kept while debugging SARS / CIPC screens. Not project source.
|
|
_probe*.json
|
|
_junction_backup*.json
|
|
_*.log
|
|
_*.txt
|
|
*.preview-p*.png
|
|
.preview-p*.png
|
|
workpage*.png
|
|
|
|
# --------------------- CIPC / BizPortal live session state (cookies!) ---
|
|
# NOTE: patterns with a slash are anchored to the repo root, so the app
|
|
# subtree needs its own Workflow/ prefix.
|
|
Workflow/scripts/storage_state.json
|
|
|
|
# ------------------------------- client documents & one-off scratch work ---
|
|
Workflow/scripts/_backup_ufc_docs/
|
|
Workflow/scripts/.scratch/
|
|
Workflow/scripts/_scratch/
|
|
scratch-*/
|
|
|
|
# ------------------------------------------ compiled python / stray bins ---
|
|
__pycache__/
|
|
*.py[cod]
|
|
*.bin
|
|
|
|
# ------------------------------------- debug screenshots & probe uploads ---
|
|
Workflow/scripts/_*.png
|
|
Workflow/scripts/sars_login_*.png
|
|
Workflow/scripts/_upload_probe.pdf
|
|
|
|
# ----------------------------------------------------------- OS / editor ---
|
|
desktop.ini
|
|
Thumbs.db
|
|
*.bak
|
|
*.bak.* |