Commit Graph

5 Commits

Author SHA1 Message Date
Kunthawat
a2cd58e434 Fix npm install - add --legacy-peer-deps for Astro 6 + tailwind compatibility 2026-04-02 10:01:18 +07:00
Kunthawat
e44f1b176d Fix Dockerfile - use npm install instead of production to build native modules 2026-04-02 09:59:41 +07:00
Kunthawat
e1d170252b Revert to SSR mode with Node adapter - keep consent logs backend 2026-04-02 09:54:07 +07:00
Kunthawat
88fcde1d62 Implement moreminimore-style consent backend with better-sqlite3
- Add @astrojs/node adapter for hybrid SSR mode
- Replace console logging with better-sqlite3 database storage
- Create data/ directory for consent.db persistence
- Full consent API: POST (log), GET (fetch), DELETE (remove)
- Admin dashboard at /admin/consent-logs.astro with:
  - Password auth via sessionStorage
  - Stats cards (total, analytics accepted, rejected, rate %)
  - 100 latest logs table
  - Export to CSV functionality
  - Delete individual records
- New Dockerfile: node:20-alpine + sqlite-libs runtime
- Admin password: Coolm@n1234mo

Note: Static pages remain prerendered, only API/admin routes are SSR.
2026-04-01 15:41:46 +07:00
Kunthawat Greethong
5f9673aac4 Initial commit - Deal Plus Tech Astro Website
 53 pages (34 products + corporate)
 All logo images
 Nginx Dockerfile (production-ready)
 PDPA compliant (cookie consent)
 Modern design with Kanit font
 Line + Phone buttons on products

Built: 2026-03-13
2026-03-13 10:38:49 +07:00