Deploying 5,000+ Astro Routes to Vercel
Résumé
Pixel shares lessons from deploying navetteforyou.com, an Astro site generating over 5,000 static routes across eight languages. The announcement covers build optimizations that reduced build time from 12 minutes to under 4, plus hreflang, translated slugs, Arabic RTL support, and Vercel deployment.
DEV Community
Deploying an 8-Language Astro Site to Vercel: Lessons from 5000+ Static Routes
Our transfer booking site navetteforyou.com serves 8 languages across 633+ pages per language. That is over 5000 static routes generated at build time by Astro. Here is what we learned deploying it to Vercel. The i18n Architecture Astro's content collections power the route generation. Each route exists in 8 language variants: English, French, Arabic, German, Spanish, Italian, Dutch, and Portuguese. /en/airport-transfer-marrakech
/fr/transfert-aeroport-marrakech
/ar/نقل-مطار-مراكش
/de/flughafentransfer-marrakesch
... (5 more languages)
Each variant has: Translated slugs (not just /fr/airport-transfer) Proper hreflang tags pointing to all alternates RTL layout support for Arabic Currency display in the user's expected format Build Performance 5000+ static pages take time. Our build optimizations: Parallel content processing — Astro processes content collections concurrently Image optimization at build — Sharp processes all images once, not per-request Incremental builds — Only regenerate changed routes (Vercel ISR) Build time went from 12 minutes to under 4 minutes. Hreflang at Scale Every page needs 8 hreflang tags pointing to its translations. Getting this wrong means Google indexes the wrong language variant for a market.
We generate these from a single route map — same source of truth that drives the sitemap. RTL Support Arabic (our third-highest traffic language) requires right-to-left layout. We handle this with: dir="rtl" on the html element for Arabic routes CSS logical properties (margin-inline-start instead of margin-left) Mirrored navigation and form layouts Deployment Vercel handles the 5000+ static pages efficiently. Vercel ISR means we can update individual pages without rebuilding everything. Operated by Serenity Morocco Tours. Visit navetteforyou.com or WhatsApp +212 701 664 704.

Powered by Readybot.io