- Ignore root package.json and Next.js files
- Prevents npm from finding wrong project
- Ensures only Astro code is built
Fixes build error where Next.js code was being compiled.
- Delete auto-generated .nixpacks folder
- Delete .docker folder
- Easypanel should use root Dockerfile only
- This prevents confusion with multiple Dockerfile locations
- Remove manual public folder copy
- Astro build automatically includes public/ in dist/
- This ensures favicons and other static assets are served
Fixes favicon 404 error.
- Add alternate icon link for favicon.ico
- Add apple-touch-icon link
- Browser automatically requests favicon.ico as fallback
- This prevents 404 errors in console
- Add horizontal scroll wrapper for narrow screens
- Reduce font sizes on mobile (text-xs md:text-sm)
- Add padding adjustments for mobile (px-3 py-2)
- Add overflow-x-auto with negative margins for full-width scroll
- Enable word break on cell content
- Set min-width 600px for table readability
- Add border-collapse for cleaner borders
Tables now scroll horizontally on mobile with better readability.
- Add SiteConfig, NavItem, ProductCategory, WorkHours interfaces
- Remove: import { ... } from './site-config' (circular import)
- Types now defined at top of file
Fixes TypeScript build error on Easypanel.
- Create .docker/Dockerfile
- This is a standard location that Easypanel recognizes
- Overrides nixpacks auto-generation
- Simple Astro build without Next.js caching
- Delete src/content.config.ts file
- Astro uses built-in content collection defaults
- Fixes build errors from explicit schema configuration
- First deploy worked without this file
- Subsequent deploys failed because of this file
- Add product detail page ([slug].astro) with table rendering
- Display productTables from site-config.ts on product pages
- Add responsive font scaling for large screens (1280px+)
- Base font scales from 16px to 24px on 4K displays
- All text elements use responsive sizing (md/lg/xl breakpoints)
- Tables styled with green headers and alternating rows
- Add comprehensive documentation (FIXES_SUMMARY.md)
Fixes:
- Product specification tables now visible on product pages
- Font too small on large screens - now responsive
- Add dynamic sitemap.xml generation for all pages
- Add robots.txt for search engine crawl directives
- Add LocalBusiness JSON-LD schema for local SEO
- Add BreadcrumbList schema for navigation breadcrumbs
- Add canonical URLs to all product pages
- Add Twitter Cards metadata
- Add Google Analytics 4 integration component
- Create llm.txt with all product data for AI optimization
- Create reusable UI components (Button, Card, Badge)
- Update company address to full Thai address
- Update .env.example with GA4 placeholder
- Add keywords, seoContent, specifications, features, FAQ, and Schema.org data
- Extend types for ProductSpecification and FAQItem
- Update product page to render SEO sections with structured data
- All content in Thai for Thai market SEO optimization
- Fixed truncated Header.tsx with missing closing tags
- Updated navigation to include all 38 products in 7 categories
- Added 2-column dropdown grid layout for desktop
- Added nested sub-categories for mobile menu
- Header: white background with dark text for navigation
- Footer: light gray background with dark text
- All text colors updated for readability
- No white text on white background issues
- Added decodeURIComponent to handle URL-encoded Thai characters
- All product and portfolio pages now work correctly
- 64 static pages generated successfully
- Changed product URLs to match original site (e.g., /ท่อพีพีอาร์ตราช้าง/)
- Added 15 portfolio projects with original URLs
- Updated mainNavigation to match original menu structure
- Build passes with 38 product paths generated