Commit Graph

4 Commits

Author SHA1 Message Date
a8fa17a947 Fix Docker build: use pnpm 11 (corepack) to match lockfile/allowBuilds schema
- pnpm-workspace.yaml from Astro v7 uses allowBuilds (pnpm 10.14+ schema);
  pnpm 9 in old Dockerfile errored 'packages field missing or empty'
- Switch Dockerfile to corepack + pnpm@11, matching pnpm-lock.yaml
- Verified pnpm install --frozen-lockfile passes with pnpm 11
2026-08-06 14:50:06 +07:00
9460be8c0e Rebuild as Astro static site (output identical to original)
- Move all 39 cloned pages + assets into public/ (Astro copies verbatim to dist/)
  -> dist/ is byte-identical to www.mitsuthailand.com (home 143633 bytes exact)
- Add Astro project: astro.config.mjs, package.json, src/layouts/Base.astro,
  src/pages/example.astro (sample Astro component page, builds to /example/)
- Multi-stage Dockerfile: pnpm build -> nginx serve + env-injecting entrypoint
- Env-configurable: GA_ID, FORM_EMAIL, GMAP_LAT/LNG/.env.example
- Remove Python crawl tooling and old nginx-static site/ layout
- Verified: astro build -> 39 pages + example; all routes serve 200 via preview
2026-08-06 14:41:36 +07:00
eea7c4780e Add env-configurable GA/form/map; remove & artifacts; verify clone completeness
- Remove 4 stray '&' files (crawl artifact) that duplicated footer/about-us/contactus/root
- Replace hardcoded GA id, form email, map src with placeholders (GA_ID, FORM_EMAIL, GMAP_EMBED)
- Add entrypoint.sh: envsubst injects env vars into HTML at container startup
- Add .env.example + .dockerignore/.gitignore guarding .env secrets
- Google Map type A (free embed, no API key) configurable via GMAP_LAT/LNG
- Verify: all 39 pages, images (38/home), content blocks (296) match original; 0 missing assets

Full clone comparison against www.mitsuthailand.com confirms sections complete.
2026-08-06 14:27:32 +07:00
e04ea1dd27 Mirror www.mitsuthailand.com as static site with dynamic URLs
- Full static mirror of the YellowPages/Drupal site (39 pages + all assets)
- All URLs rewritten to relative/domain-agnostic form (works on any domain)
- RFQ + request-quotation + contact forms converted to email (FormSubmit.co)
- Google Maps embed replaced with static Google Maps iframe
- nginx Dockerfile + config for EasyPanel deployment
- mirror.py/rewrite.py/cleanup.py tooling for re-crawling updates
2026-08-06 13:50:48 +07:00