Commit Graph

7 Commits

Author SHA1 Message Date
Kunthawat Greethong
61321669d1 fix: Add missing imports to migrate_existing_website.py
- Added argparse, json, shutil, re, subprocess imports
- Fixed NameError when running script
- Script now works correctly
2026-03-12 09:45:48 +07:00
Kunthawat Greethong
20d1e24389 feat: Add smart website migration with tech stack detection
NEW MIGRATION WORKFLOW:
1. DETECT - Analyzes tech stack (Astro, Tailwind, CSS, etc.)
2. PLAN - Creates detailed migration plan with risks
3. PRESERVE - Keeps ALL content exactly (inline CSS, text, routes)
4. CONVERT - Carefully converts CSS (Tailwind v3→v4)
5. REBUILD - Fresh Astro install with preserved content
6. ENHANCE - Adds new features (cookie consent, PDPA)
7. TEST - Comprehensive testing before deployment

Files:
- migrate_existing_website.py (new smart migration script)
- MIGRATION_WORKFLOW.md (documentation)

Benefits:
- No more broken CSS
- No more failed deployments
- All inline styles preserved
- All routes preserved
- Plan before migrating (--plan-only mode)
2026-03-12 09:19:26 +07:00
Kunthawat Greethong
7fe879ed61 fix: Website-creator Dockerfile uses npm install instead of ci
- Changed npm ci to npm install (more flexible for production)
- Port remains 80 (correct)
- Applies to both source and global install
2026-03-12 08:56:21 +07:00
Kunthawat Greethong
107ebad97c feat: Major website-creator skill update
- Reverted to Dockerfile deployment (from nixpacks)
- Created Thai legal document templates (PDPA compliant)
  - Privacy Policy template (Thai law)
  - Terms of Service template (Thai Consumer Protection Act)
- Updated cookie consent to actually block/enable cookies
- Added template folder structure
- All templates research-based from major Thai company websites

Compliance:
- Thai PDPA (Personal Data Protection Act B.E. 2562)
- Thai Consumer Protection Act
- Thai Computer Crime Act
2026-03-10 19:28:28 +07:00
Kunthawat Greethong
719edd6681 feat: Use nixpacks as default build type for Easypanel
- Changed from Dockerfile to nixpacks (no Dockerfile needed)
- Astro projects automatically detected and built by nixpacks
- Simpler deployment, no Docker configuration required
2026-03-10 10:38:30 +07:00
Kunthawat Greethong
7524c29ce5 fix: Umami skill auto-load from unified .env
- Load credentials from ~/.config/opencode/.env automatically
- No need to configure .env in each skill directory
- Fixes issue where new skills couldn't find credentials
2026-03-09 13:50:10 +07:00
Kunthawat Greethong
9be686f587 Auto-sync from website-creator 2026-03-08 23:03:19 +07:00