I rebuilt the website of the company I work for (ictsolutions.net) from a Hugo theme on GitHub Pages to Astro 7 + Tailwind v4. A few things that might be useful if you're building something similar:
i18n. Slovak at /, English at /en, linked with hreflang. On the first visit an inline script in <head> picks the language from navigator.languages and redirects to the hreflang counterpart before paint, so there's no flash. A manual switch is stored and always wins, and crawlers are skipped so both versions get indexed.
Static output + one small API. The site is fully static, served by nginx. The only dynamic part is the contact form: a ~300-line Node sidecar verifies Cloudflare Turnstile and creates a ticket in our helpdesk (FreeScout) via its API. Traefik routes /api/contact to it. All secrets stay in that container.
Design tokens. Brand colours, radii, shadows and type live in Tailwind v4's @theme, so the whole site pulls from one place.
Blog. Pagefind for search (indexes the built HTML, no server), Satori for OG images.
Deploy. GitHub Actions builds Docker images to GHCR, and a self-hosted runner deploys them to our VM: develop goes to a preview, a release tag goes to prod. Production never runs :latest.
Migration. nginx has a 301 map for every old Hugo URL and the old PDFs. nginx matches the decoded URI, so file names with spaces and diacritics go into the config as-is, no %20.
I wrote up the details on my blog: https://rebjak.com/en/blog/new-ictsolutions-website/
Happy to answer questions about any of it.