Staging

Merged
RT
6mo ago
+4766-249

Summary by cubic

Adds health endpoints and hardens deploys with automatic health checks and dynamic base path handling. Launches the Associate Retailer program plus Contact and legal policy pages, with updated navigation/footer and UI polish.

  • New Features

    • Health endpoints at /health and /api/health (200 on GET/HEAD).
    • Associate Retailer program at /associate-retailer (Apply, Community, application form, earnings calculator).
    • Contact page and legal policies (Privacy, Cookie, Refund, Terms) using LegalPolicyDocument + MarketPolicyTabs (India/Malaysia).
    • Navbar/footer updated with new links.
  • Refactors

    • Deploy/rollback workflows set NEXT_PUBLIC_BASE_PATH/APP_BASE_PATH, run pm2 --update-env, and use .github/scripts/healthcheck-candidates.mjs for fallback health checks.
    • next.config.ts derives basePath from NEXT_PUBLIC_BASE_PATH (defaults to /staging in dev, empty in prod) and applies assetPrefix only when needed.
    • UI polish: Associate Retailer content/layout refinements, global scrollbar styling, home hero copy + CTA tweaks, menu overlay scroll fix; removed unused SVGs and the hero laptop logo; cleaned up 3D scene materials.

Summary by CodeRabbit

  • New Features

    • Contact page with interactive contact form.
    • New legal/policy system and pages: Cookie Policy, Refund Policy, Terms & Conditions with India/Malaysia tabs.
    • Associate Retailer section: landing, apply form, community, earnings calculator and related pages/components.
    • Lightweight health endpoints for service checks.
  • Improvements

    • Deployment health-checks enhanced to try multiple candidate URLs.
    • Home hero updated with new messaging and PHYGITAL branding.
    • Navbar adds Contact link; footer redesigned and global scrollbar styling added.