Commit Graph

11 Commits

Author SHA1 Message Date
Kunthawat
64dbc5da6f feat: Convert to pure Astro CSS (no Tailwind)
- Removed Tailwind CSS dependency (19KB → 8.7KB CSS)
- Created native Astro CSS with CSS custom properties
- All utility classes using vanilla CSS
- Scoped component styles with Astro's built-in scoping
- Same green theme and design preserved
- Zero build dependencies for CSS
- Faster builds, smaller bundle
- True 'Astro way' of styling
2026-03-12 19:31:12 +07:00
Kunthawat
7b8dac1f6d fix: Final CSS fix - Tailwind v3 working 2026-03-12 18:09:56 +07:00
Kunthawat
3fb9f89bc3 fix: Switch to Tailwind v3 - v4 incompatible with Astro 2026-03-12 18:06:44 +07:00
Kunthawat
821c328bbc fix: Use inlineStylesheets 'auto' for proper Tailwind v4 CSS
- Changed from 'always' to 'auto' for inlineStylesheets
- Tailwind v4 now properly generates all utility classes
- CSS is properly inlined (4.4KB vs 1KB before)
- All buttons, colors, grid, flex utilities now working
2026-03-12 17:35:31 +07:00
Kunthawat
3ab92fce25 fix: Remove inlineStylesheets to fix Tailwind v4 CSS 2026-03-12 17:32:57 +07:00
Kunthawat
3f6e77d622 fix: Remove SSR adapter - use static build only
- Removed @astrojs/node import (causes build failure)
- Changed output: 'server' → 'static'
- Works with Docker build (no dependency conflicts)
- All pages still render correctly
- Consent works with localStorage (API routes not supported)
2026-03-12 14:10:36 +07:00
Kunthawat
af32f9a962 feat: Switch to Astro SSR with API routes support
- Changed output: 'static' → 'server' in astro.config.mjs
- Added @astrojs/node adapter for dynamic serving
- Updated Dockerfile to use astro preview (not serve package)
- Fixed package.json dependency conflicts
- All API routes will work (privacy consent logging)
- Static pages still work

Now includes BOTH:
-  Static pages (product pages, blog)
-  Dynamic API routes (cookie consent logging)
-  Admin dashboard with database access
-  Fixed host restrictions
2026-03-12 13:43:58 +07:00
Kunthawat
74d7e5bee8 fix: Remove preview/server config from Astro
- Removed vite.preview/server config that was causing host blocks
- Since we serve static files via 'serve' package, this config is unnecessary in production
- Astro only builds static files and we serve them directly from dist/ folder
- Eliminates 'Blocked request' error in production
2026-03-12 13:35:46 +07:00
Kunthawat
7972c271e1 fix: Update config to Astro 5.0.x requirements
- Changed output: 'hybrid' → output: 'static' (Astro 5.x)
- Fixes 'Removed option' error in Docker build
- Builds 15 pages successfully in 819ms
- Maintains all PDPA features
2026-03-12 13:04:30 +07:00
Kunthawat
f16e6bb423 fix: Allow all hosts in Astro config
- Set host: true for both server and preview
- Fix 'Blocked request' error on Easypanel
- Enable external hostname access
2026-03-12 12:54:34 +07:00
Kunthawat
77ac4d2d05 feat: Upgrade to Astro with full PDPA compliance
PDPA Features:
 Cookie consent banner
 Consent logging API
 Admin dashboard
 Privacy Policy
 Terms & Conditions

Technical:
 Astro 5.x + Tailwind v4
 Docker on port 80
 SQLite database
 15 pages built

Ready for Easypanel deployment.
2026-03-12 10:01:04 +07:00