Skip to Content
Living documentation — last reviewed 2026-05-28
FeaturesMinisitesMinisites — Code Map

Minisites — Code Map

App root

  • apps/minisites/astro.config.mjsoutput: 'server', dual adapter (Vercel / Node).
  • apps/minisites/vercel.json — Vercel rewrites & domains.
  • apps/minisites/package.json — Astro 5 + minimal section components.

Pages

  • apps/minisites/src/pages/[...slug].astro — single catch-all. Resolves the host, fetches publishedContent, composes sections.
  • apps/minisites/src/pages/404.astro — fallback when the host resolves but the site isn’t published.
  • apps/minisites/src/pages/courses/ — per-course landing pages.
  • apps/minisites/src/pages/robots.txt.ts — robots dynamic endpoint.

Layout

  • apps/minisites/src/layouts/modern.astro — outer shell. Injects theme CSS variables, locale + direction, SEO tags, hero preload, floating WhatsApp button.

Section components

  • apps/minisites/src/components/sections/Hero.astro
  • apps/minisites/src/components/sections/About.astro
  • apps/minisites/src/components/sections/Classes.astro
  • apps/minisites/src/components/sections/Schedule.astro
  • apps/minisites/src/components/sections/Pricing.astro
  • apps/minisites/src/components/sections/Courses.astro
  • apps/minisites/src/components/sections/Trainers.astro
  • apps/minisites/src/components/sections/Contact.astro
  • apps/minisites/src/components/sections/Gallery.astro
  • apps/minisites/src/components/sections/Testimonials.astro
  • apps/minisites/src/components/sections/FAQ.astro

Lib

  • apps/minisites/src/lib/i18n.tsresolveLocale(input) normalizes draft/org locale to one of he | en | ru.

Schema

  • libs/db/src/lib/schema/minisites.tsminisite_content table.

API endpoints used

  • GET /minisites/resolve?host=<host> — public resolver consumed by the catch-all.
  • Editor endpoints (dashboard surface): live under the FitKit API minisites module; not consumed by the Astro app directly.