Commit Graph

2 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