<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Marrakech Transport</title>
    <description>The latest articles on DEV Community by Marrakech Transport (@navetteforyou).</description>
    <link>https://dev.to/navetteforyou</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4246767%2Fc7b679d3-0365-4560-a453-d4300187ebfd.png</url>
      <title>DEV Community: Marrakech Transport</title>
      <link>https://dev.to/navetteforyou</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/navetteforyou"/>
    <language>en</language>
    <item>
      <title>Medina GPS Dead Zones: How Drivers Navigate Where Google Maps Fails</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 05:00:54 +0000</pubDate>
      <link>https://dev.to/navetteforyou/medina-gps-dead-zones-how-drivers-navigate-where-google-maps-fails-3mhm</link>
      <guid>https://dev.to/navetteforyou/medina-gps-dead-zones-how-drivers-navigate-where-google-maps-fails-3mhm</guid>
      <description>&lt;p&gt;Google Maps gives up inside the Marrakech medina. Here is how experienced transfer drivers navigate the ancient city.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;The medina has 700+ named alleys. Many are narrower than a car. Street numbers follow no logic. GPS signals bounce between 600-year-old walls. Google Maps pins land in the wrong alley.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Experienced Drivers Handle It
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Gate Knowledge
&lt;/h3&gt;

&lt;p&gt;Every riad has a nearest vehicle gate (bab). Drivers memorise which gate serves which zone:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bab Doukkala&lt;/strong&gt; for Mouassine and northern medina&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bab Laksour&lt;/strong&gt; for Dar el Bacha area&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bab Agnaou&lt;/strong&gt; for Kasbah and Saadian Tombs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bab Aylen&lt;/strong&gt; for Riad Zitoun and Bahia Palace&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Landmark Navigation
&lt;/h3&gt;

&lt;p&gt;Forget coordinates. Drivers navigate by landmarks: fountains, mosques, carpet shops, turns in the wall. More reliable than lat/long.&lt;/p&gt;

&lt;h3&gt;
  
  
  Local Network
&lt;/h3&gt;

&lt;p&gt;Medina guardians (gardiens de nuit) know every riad in their sector. A quick conversation in Darija gets you to the door.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pre-Visit Scouting
&lt;/h3&gt;

&lt;p&gt;For complex access, drivers scout the route beforehand. First-time pickups get a WhatsApp voice note with walking directions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Means
&lt;/h2&gt;

&lt;p&gt;Book with someone who knows the medina. A random taxi reaches the gate. The last 5 minutes on foot, at 2 AM, with luggage and children, is where expertise matters.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;How &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;Marrakech Transport&lt;/a&gt; operates daily. By &lt;a href="https://www.serenitymoroccotours.com" rel="noopener noreferrer"&gt;Serenity Morocco Tours&lt;/a&gt;. WhatsApp: +212 701 664 704.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Deploying an 8-Language Astro Site to Vercel: Lessons from 5000+ Static Routes</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 04:34:47 +0000</pubDate>
      <link>https://dev.to/navetteforyou/deploying-an-8-language-astro-site-to-vercel-lessons-from-5000-static-routes-2cdb</link>
      <guid>https://dev.to/navetteforyou/deploying-an-8-language-astro-site-to-vercel-lessons-from-5000-static-routes-2cdb</guid>
      <description>&lt;p&gt;Our transfer booking site &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The i18n Architecture
&lt;/h2&gt;

&lt;p&gt;Astro's content collections power the route generation. Each route exists in 8 language variants: English, French, Arabic, German, Spanish, Italian, Dutch, and Portuguese.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/en/airport-transfer-marrakech
/fr/transfert-aeroport-marrakech
/ar/نقل-مطار-مراكش
/de/flughafentransfer-marrakesch
... (5 more languages)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each variant has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Translated slugs (not just /fr/airport-transfer)&lt;/li&gt;
&lt;li&gt;Proper hreflang tags pointing to all alternates&lt;/li&gt;
&lt;li&gt;RTL layout support for Arabic&lt;/li&gt;
&lt;li&gt;Currency display in the user's expected format&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Build Performance
&lt;/h2&gt;

&lt;p&gt;5000+ static pages take time. Our build optimizations:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Parallel content processing&lt;/strong&gt; — Astro processes content collections concurrently&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Image optimization at build&lt;/strong&gt; — Sharp processes all images once, not per-request&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incremental builds&lt;/strong&gt; — Only regenerate changed routes (Vercel ISR)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Build time went from 12 minutes to under 4 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hreflang at Scale
&lt;/h2&gt;

&lt;p&gt;Every page needs 8 hreflang tags pointing to its translations. Getting this wrong means Google indexes the wrong language variant for a market.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"alternate"&lt;/span&gt; &lt;span class="na"&gt;hreflang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://www.navetteforyou.com/en/..."&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"alternate"&lt;/span&gt; &lt;span class="na"&gt;hreflang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fr"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://www.navetteforyou.com/fr/..."&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"alternate"&lt;/span&gt; &lt;span class="na"&gt;hreflang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"ar"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://www.navetteforyou.com/ar/..."&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We generate these from a single route map — same source of truth that drives the sitemap.&lt;/p&gt;

&lt;h2&gt;
  
  
  RTL Support
&lt;/h2&gt;

&lt;p&gt;Arabic (our third-highest traffic language) requires right-to-left layout. We handle this with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;dir="rtl"&lt;/code&gt; on the html element for Arabic routes&lt;/li&gt;
&lt;li&gt;CSS logical properties (&lt;code&gt;margin-inline-start&lt;/code&gt; instead of &lt;code&gt;margin-left&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Mirrored navigation and form layouts&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Deployment
&lt;/h2&gt;

&lt;p&gt;Vercel handles the 5000+ static pages efficiently. Vercel ISR means we can update individual pages without rebuilding everything.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Operated by Serenity Morocco Tours. Visit &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; or WhatsApp +212 701 664 704.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>astro</category>
      <category>vercel</category>
      <category>i18n</category>
      <category>deployment</category>
    </item>
    <item>
      <title>Static Site SEO at Scale: IndexNow, Sitemaps, and Schema.org for 600+ Pages</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:56:01 +0000</pubDate>
      <link>https://dev.to/navetteforyou/static-site-seo-at-scale-indexnow-sitemaps-and-schemaorg-for-600-pages-4fnd</link>
      <guid>https://dev.to/navetteforyou/static-site-seo-at-scale-indexnow-sitemaps-and-schemaorg-for-600-pages-4fnd</guid>
      <description>&lt;h2&gt;
  
  
  The SEO Stack
&lt;/h2&gt;

&lt;p&gt;Our site generates 600+ pages across eight languages. Each page needs to be discoverable, correctly indexed with hreflang, and rich with structured data. Here is how we handle SEO at this scale on a fully static site.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sitemaps with Hreflang
&lt;/h2&gt;

&lt;p&gt;The sitemap is generated at build time from the same route registry the app uses. Every URL gets &lt;code&gt;xhtml:link rel="alternate"&lt;/code&gt; entries for all eight locales plus &lt;code&gt;x-default&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;alts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;locales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="sb"&gt;`&amp;lt;xhtml:link rel="alternate" hreflang="${a}" href="${abs(localizedHref(path, a))}"/&amp;gt;`&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each URL also carries a &lt;code&gt;&amp;lt;lastmod&amp;gt;&lt;/code&gt; date pulled from a per-page change log.&lt;/p&gt;

&lt;h2&gt;
  
  
  IndexNow: Instant Indexing
&lt;/h2&gt;

&lt;p&gt;After every production deploy, we ping IndexNow with every URL in the sitemap. The script reads the built sitemap XML, extracts all &lt;code&gt;&amp;lt;loc&amp;gt;&lt;/code&gt; entries, and posts them to Bing's IndexNow endpoint in batches of 10,000:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://www.bing.com/indexnow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"content-type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json; charset=utf-8"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"www.navetteforyou.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;urlList&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;urlList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;10000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bing shares IndexNow pings with Yandex, Seznam, and Naver.&lt;/p&gt;

&lt;h2&gt;
  
  
  Schema.org Entity Graph
&lt;/h2&gt;

&lt;p&gt;We build a connected entity graph:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Organization&lt;/strong&gt; (&lt;code&gt;TravelAgency&lt;/code&gt;): one canonical &lt;code&gt;@id&lt;/code&gt; shared with our sister site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Website&lt;/strong&gt;: linked to the organization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Service&lt;/strong&gt; per route: &lt;code&gt;TaxiService&lt;/code&gt; or &lt;code&gt;TouristTrip&lt;/code&gt; with structured &lt;code&gt;Offer&lt;/code&gt; nodes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Place&lt;/strong&gt;: &lt;code&gt;Airport&lt;/code&gt;, &lt;code&gt;City&lt;/code&gt;, and destination nodes linked by &lt;code&gt;areaServed&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;@id&lt;/code&gt; references mean every page reinforces the same entity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;OPERATOR_ID&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="s2"&gt;"https://www.serenitymoroccotours.com/#organization"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  llms.txt and AI Crawlers
&lt;/h2&gt;

&lt;p&gt;We serve an &lt;code&gt;llms.txt&lt;/code&gt; file for AI search engines and allow crawling by GPTBot, ClaudeBot, and PerplexityBot. As AI-powered search grows, being crawlable by these bots matters as much as traditional SEO.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;IndexNow pings after deploy mean new route pages appear in Bing within hours. Structured data earns rich results for transfer queries. Hreflang prevents duplicate content penalties across eight languages. All of this runs with zero ongoing cost.&lt;/p&gt;




&lt;p&gt;Operated by Serenity Morocco Tours. Visit &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; or WhatsApp +212 701 664 704.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>astro</category>
    </item>
    <item>
      <title>How We Use Flight Data APIs to Track Every Airport Pickup</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:55:36 +0000</pubDate>
      <link>https://dev.to/navetteforyou/how-we-use-flight-data-apis-to-track-every-airport-pickup-ej9</link>
      <guid>https://dev.to/navetteforyou/how-we-use-flight-data-apis-to-track-every-airport-pickup-ej9</guid>
      <description>&lt;h2&gt;
  
  
  The Airport Pickup Problem
&lt;/h2&gt;

&lt;p&gt;When a guest books an airport transfer, they give us a flight number and scheduled arrival time. But flights are late, early, or diverted daily. A driver waiting at arrivals for a 14:00 landing that actually touches down at 15:40 wastes fuel and patience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Flight-Aware Pricing
&lt;/h2&gt;

&lt;p&gt;Our system incorporates flight awareness at two levels. First, the pricing engine knows that Marrakech Menara (RAK) is the anchor. Airport pickups get a 60-minute free wait window:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;FREE_WAIT_MIN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that window, the driver calls the guest and the office. Extended waits are agreed by phone, never auto-charged.&lt;/p&gt;

&lt;h2&gt;
  
  
  Night Supplement Logic
&lt;/h2&gt;

&lt;p&gt;Flights landing between 23:00 and 05:59 trigger a night supplement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;NIGHT_FROM&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;23&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;NIGHT_TO&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;NIGHT_PCT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 22:50 landing pays daytime rates. A 23:05 landing pays 10% more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Schema.org Integration
&lt;/h2&gt;

&lt;p&gt;Each airport transfer page emits a &lt;code&gt;TaxiService&lt;/code&gt; JSON-LD node with structured &lt;code&gt;Offer&lt;/code&gt; objects:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Offer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"priceCurrency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"MAD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"300"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"itemOffered"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"TaxiService"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"provider"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"@id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://www.serenitymoroccotours.com/#organization"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What This Means for the Guest
&lt;/h2&gt;

&lt;p&gt;The guest books with a flight number. Our office tracks the actual landing. The driver arrives when the plane lands. The 60-minute free wait means nobody is rushed through passport control. All via WhatsApp, no app required.&lt;/p&gt;




&lt;p&gt;Operated by Serenity Morocco Tours. Visit &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; or WhatsApp +212 701 664 704.&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>typescript</category>
      <category>seo</category>
    </item>
    <item>
      <title>Building a WhatsApp-First Booking Flow Without a Backend</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:47:25 +0000</pubDate>
      <link>https://dev.to/navetteforyou/building-a-whatsapp-first-booking-flow-without-a-backend-26jf</link>
      <guid>https://dev.to/navetteforyou/building-a-whatsapp-first-booking-flow-without-a-backend-26jf</guid>
      <description>&lt;h2&gt;
  
  
  Why WhatsApp
&lt;/h2&gt;

&lt;p&gt;In Morocco, WhatsApp is the universal messaging app. Our guests are tourists arriving at Marrakech Menara airport, and they already have WhatsApp open. A traditional booking form with login, payment gateway, and confirmation emails adds friction. WhatsApp adds none.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Implementation
&lt;/h2&gt;

&lt;p&gt;Every "Book Now" button on our site is a pre-filled WhatsApp link. The helper function is straightforward:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;whatsappHref&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sb"&gt;`https://wa.me/${site.whatsapp}?text=${encodeURIComponent(tagged(text))}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;tagged()&lt;/code&gt; wrapper prepends a source tag so the office knows which site the message came from (we operate multiple domains):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;SOURCE_TAG&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`[navetteforyou.com \u00b7 Marrakech Transport]`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;tagged&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;SOURCE_TAG&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`${SOURCE_TAG}\n${s}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Pre-Filling the Message
&lt;/h2&gt;

&lt;p&gt;Each route page composes a booking message with the transfer details already filled in: route, date placeholder, number of passengers, vehicle class, and quoted price. When the guest taps the button, WhatsApp opens with a message like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[navetteforyou.com \u00b7 Marrakech Transport]
Transfer: Marrakech Airport \u2192 Medina
Vehicle: Mercedes E-Class (3 pax)
Price: 300 MAD
Date: [your arrival date]
Flight: [your flight number]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The guest fills in two blanks and hits send. The office responds within minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Email Fallback
&lt;/h2&gt;

&lt;p&gt;For guests who prefer email, we use the same pattern with &lt;code&gt;mailto:&lt;/code&gt; links:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;mailHref&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subject&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;subj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`[navetteforyou.com] ${subject}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sb"&gt;`mailto:${site.email}?subject=${encodeURIComponent(subj)}&amp;amp;body=${encodeURIComponent(tagged(body))}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Zero Backend
&lt;/h2&gt;

&lt;p&gt;There is no server, no database, no payment processing. The entire booking flow is a static site generating deep links into WhatsApp and email. The operator's office handles confirmations, payments (cash or bank transfer), and driver dispatch. This architecture costs nothing to run and has zero downtime risk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tradeoffs
&lt;/h2&gt;

&lt;p&gt;The obvious gap: no automated scheduling, no calendar integration, no payment capture. For a small transfer operator handling 10-30 bookings per day, a WhatsApp thread with context is faster than any dashboard. At scale, you would add a backend. We are not at that scale, and premature infrastructure is a cost, not a feature.&lt;/p&gt;




&lt;p&gt;Operated by Serenity Morocco Tours. Visit &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; or WhatsApp +212 701 664 704.&lt;/p&gt;

</description>
      <category>whatsapp</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>ux</category>
    </item>
    <item>
      <title>Deploying an 8-Language Astro Site to Vercel: Lessons from 5000+ Static Routes</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:47:00 +0000</pubDate>
      <link>https://dev.to/navetteforyou/deploying-an-8-language-astro-site-to-vercel-lessons-from-5000-static-routes-3ik0</link>
      <guid>https://dev.to/navetteforyou/deploying-an-8-language-astro-site-to-vercel-lessons-from-5000-static-routes-3ik0</guid>
      <description>&lt;h2&gt;
  
  
  The Scale
&lt;/h2&gt;

&lt;p&gt;Our Marrakech transfer site serves content in eight languages: English, French, Spanish, German, Italian, Portuguese, Dutch, and Arabic (RTL). Multiply that by 80+ route pages, excursion pages, activity pages, guide articles, and utility pages, and you hit 5,000+ static routes at build time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Locale Architecture
&lt;/h2&gt;

&lt;p&gt;Each locale gets its own URL prefix except English (the default):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;LOCALES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"en"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ltr"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hreflang&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"en"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"fr"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ltr"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hreflang&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"fr"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ar"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"rtl"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hreflang&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ar"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;// ... 5 more&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A single &lt;code&gt;splitLocalePath&lt;/code&gt; function handles routing: &lt;code&gt;/fr/transfers/essaouira&lt;/code&gt; resolves to &lt;code&gt;{ locale: "fr", pathname: "/transfers/essaouira" }&lt;/code&gt;. English paths have no prefix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Translation Dict Pattern
&lt;/h2&gt;

&lt;p&gt;Each locale has a folder of TypeScript modules (&lt;code&gt;dict/fr/routes.ts&lt;/code&gt;, &lt;code&gt;dict/fr/ui.ts&lt;/code&gt;). A &lt;code&gt;fill()&lt;/code&gt; helper merges the locale dict onto the English base, so untranslated keys fall back to English rather than rendering raw slugs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;uiNs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;locale&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Locale&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Strings&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;en&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;peekDict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"en"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ui&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ns&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;locale&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"en"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;en&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;own&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;getDict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;locale&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ui&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ns&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;en&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;own&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This means a new locale ships immediately with English fallbacks and gets polished over time.&lt;/p&gt;

&lt;h2&gt;
  
  
  RTL Support
&lt;/h2&gt;

&lt;p&gt;Arabic runs RTL. Every page reads &lt;code&gt;dir&lt;/code&gt; from the locale config. CSS logical properties (&lt;code&gt;margin-inline-start&lt;/code&gt; instead of &lt;code&gt;margin-left&lt;/code&gt;) handle most layout flipping. The few places that need explicit RTL overrides are scoped to &lt;code&gt;[dir="rtl"]&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Vercel Deploy
&lt;/h2&gt;

&lt;p&gt;We deploy with &lt;code&gt;vercel --prod&lt;/code&gt;. The build outputs static HTML into &lt;code&gt;.vercel/output/static/&lt;/code&gt;. With 5,000+ files, build times stay under two minutes because there is no SSR and no serverless functions. The sitemap generator runs at build time and includes every locale variant with &lt;code&gt;xhtml:link rel="alternate"&lt;/code&gt; for hreflang.&lt;/p&gt;

&lt;h2&gt;
  
  
  What We Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ship incomplete translations early with a fallback chain. Waiting for 100% coverage before launch is a trap.&lt;/li&gt;
&lt;li&gt;Use TypeScript for translation files so missing keys are caught at build time.&lt;/li&gt;
&lt;li&gt;Static generation at this scale is fast if you avoid SSR. Our full build plus deploy takes under three minutes.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Operated by Serenity Morocco Tours. Visit &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; or WhatsApp +212 701 664 704.&lt;/p&gt;

</description>
      <category>astro</category>
      <category>vercel</category>
      <category>i18n</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How We Built a Multi-Currency Pricing Engine for 633 Static Pages</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:42:11 +0000</pubDate>
      <link>https://dev.to/navetteforyou/how-we-built-a-multi-currency-pricing-engine-for-633-static-pages-1286</link>
      <guid>https://dev.to/navetteforyou/how-we-built-a-multi-currency-pricing-engine-for-633-static-pages-1286</guid>
      <description>&lt;p&gt;When you run a transfer service that publishes fixed prices across 633 static pages in 8 languages, pricing changes are not a database update — they are a build.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Our site &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; serves Marrakech airport transfers and day trips. Every route has a price in MAD (Moroccan Dirhams) that appears on multiple pages across 8 language variants. Change one price, and it propagates to dozens of pages.&lt;/p&gt;

&lt;p&gt;We needed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A single source of truth for all prices&lt;/li&gt;
&lt;li&gt;Automatic propagation to every language/page combo&lt;/li&gt;
&lt;li&gt;A validation gate that catches any price anomaly before deploy&lt;/li&gt;
&lt;li&gt;No price under our 600 MAD floor appearing anywhere&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/content/pricing.ts — single source of truth&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;ROUTES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s1"&gt;'marrakech-airport'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;mad&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'airport'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'marrakech-essaouira'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;mad&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1800&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'day-trip'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'marrakech-fes'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;mad&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'intercity'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;// ... 89 routes&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each route price lives in one place. Astro's static site generation reads this at build time and stamps it onto every page that references that route.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Validation Gate
&lt;/h2&gt;

&lt;p&gt;Before every deploy, a TypeScript script scans every generated HTML file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// scripts/static-price-check.ts&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;glob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'dist/**/*.html'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;html&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;readFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'utf8'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;prices&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="no"&gt;MAD&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;prices&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;val&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;val&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;val&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;errors&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${file}: found ${p} below 600 MAD floor`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This runs in CI. If any page shows a price below our business floor, the deploy fails. No exceptions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Static sites make pricing auditable.&lt;/strong&gt; Every price on every page is in the HTML at build time. No runtime surprises.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A validation gate is cheaper than a mistake.&lt;/strong&gt; One wrong price on one page can cost real money. The 30-second check is worth it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Single source of truth scales.&lt;/strong&gt; 633 pages, 8 languages, 89 routes — and a price change is still a one-line edit.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;em&gt;Operated by Serenity Morocco Tours. Visit &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; or WhatsApp +212 701 664 704.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>pricing</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Midnight Airport Arrivals in Marrakech: Engineering the 2 AM Transfer</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:40:41 +0000</pubDate>
      <link>https://dev.to/navetteforyou/midnight-airport-arrivals-in-marrakech-engineering-the-2-am-transfer-19bm</link>
      <guid>https://dev.to/navetteforyou/midnight-airport-arrivals-in-marrakech-engineering-the-2-am-transfer-19bm</guid>
      <description>&lt;p&gt;When your flight lands at 1:47 AM, the airport is a different world. Here's how we engineered the overnight transfer experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Marrakech Menara Airport after midnight: exchange bureaux closed, cafés shut, taxi supply thin, and guests disoriented after a red-eye flight. The medina is a maze even in daylight.&lt;/p&gt;

&lt;h2&gt;
  
  
  Our Solution Stack
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Flight Tracking
&lt;/h3&gt;

&lt;p&gt;We monitor FlightRadar24 and airline status APIs. When a flight is delayed, the driver's schedule adjusts automatically. No phone calls, no panicked WhatsApp messages from immigration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Meet-and-Greet Protocol
&lt;/h3&gt;

&lt;p&gt;Driver enters the arrivals hall with a name board. Assists with luggage. Guides through the terminal. For first-time visitors to Morocco at 2 AM, this personal welcome changes everything.&lt;/p&gt;

&lt;h3&gt;
  
  
  Medina Access Knowledge
&lt;/h3&gt;

&lt;p&gt;GPS fails in the medina. Our drivers know every access point for every major riad. Bab Doukkala for the north. Bab Laksour for Mouassine. Bab Agnaou for the kasbah. The right gate saves 15 minutes of confusion.&lt;/p&gt;

&lt;h3&gt;
  
  
  24/7 Operations
&lt;/h3&gt;

&lt;p&gt;No surge pricing at 3 AM. Same rate, same service, same vehicle standards. The only difference is the empty roads make the 6km drive take 10 minutes instead of 20.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Airport to medina: 6 km, 10-15 minutes at night&lt;/li&gt;
&lt;li&gt;Immigration: 20-45 minutes depending on flight clusters&lt;/li&gt;
&lt;li&gt;Time from touchdown to riad door: typically under 90 minutes&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Part of the &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;Marrakech Transport&lt;/a&gt; technical series by &lt;a href="https://www.serenitymoroccotours.com" rel="noopener noreferrer"&gt;Serenity Morocco Tours&lt;/a&gt;. WhatsApp: +212 701 664 704.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How We Built an llms.txt File for AI-Powered Travel Discovery</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:34:43 +0000</pubDate>
      <link>https://dev.to/navetteforyou/how-we-built-an-llmstxt-file-for-ai-powered-travel-discovery-4cb7</link>
      <guid>https://dev.to/navetteforyou/how-we-built-an-llmstxt-file-for-ai-powered-travel-discovery-4cb7</guid>
      <description>&lt;p&gt;LLMs are becoming a discovery channel. When someone asks ChatGPT or Perplexity "best Marrakech airport transfer", can the model find you?&lt;/p&gt;

&lt;h2&gt;
  
  
  What is llms.txt?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;llms.txt&lt;/code&gt; is a proposed standard (like robots.txt for AI) that tells language models about your site. It lives at the domain root and provides structured data LLMs can parse without crawling everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Our Implementation
&lt;/h2&gt;

&lt;p&gt;We serve &lt;code&gt;llms.txt&lt;/code&gt; at &lt;code&gt;navetteforyou.com/llms.txt&lt;/code&gt; with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Service descriptions&lt;/li&gt;
&lt;li&gt;Coverage areas (Marrakech, Casablanca, Fes, Atlas Mountains)&lt;/li&gt;
&lt;li&gt;Supported languages (8 languages)&lt;/li&gt;
&lt;li&gt;Contact information and booking flow&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why This Matters for Travel
&lt;/h2&gt;

&lt;p&gt;AI models power an increasing share of travel research. Perplexity, ChatGPT with browsing, Google AI Overviews — they all need structured input to cite accurately.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;llms.txt&lt;/code&gt; complements Schema.org by speaking the LLM's native format: plain structured text, not JSON-LD.&lt;/p&gt;

&lt;h2&gt;
  
  
  The AEO Stack
&lt;/h2&gt;

&lt;p&gt;This is one layer of our Answer Engine Optimisation strategy:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;llms.txt&lt;/strong&gt; — direct LLM discovery file&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema.org entity graph&lt;/strong&gt; — knowledge panel fuel&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High-authority platform citations&lt;/strong&gt; — DR 90+ backlinks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Natural language content&lt;/strong&gt; — quotable passages for AI answers&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each layer reinforces the others. The llms.txt file points models to our structured data; the structured data validates what the llms.txt claims.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by &lt;a href="https://www.serenitymoroccotours.com" rel="noopener noreferrer"&gt;Serenity Morocco Tours&lt;/a&gt; for &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;Marrakech Transport&lt;/a&gt;. WhatsApp: +212 701 664 704.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Building an llms.txt File for a Transport Booking Site</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:29:42 +0000</pubDate>
      <link>https://dev.to/navetteforyou/building-an-llmstxt-file-for-a-transport-booking-site-40eb</link>
      <guid>https://dev.to/navetteforyou/building-an-llmstxt-file-for-a-transport-booking-site-40eb</guid>
      <description>&lt;p&gt;LLMs are becoming a discovery channel for travel services. When someone asks ChatGPT or Perplexity about Marrakech airport transfers, can the model find you?&lt;/p&gt;

&lt;h2&gt;
  
  
  What is llms.txt?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;llms.txt&lt;/code&gt; is a proposed standard that tells AI models about your site. It lives at the domain root and provides a structured summary LLMs can parse without crawling everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Our Implementation
&lt;/h2&gt;

&lt;p&gt;We serve &lt;code&gt;llms.txt&lt;/code&gt; at &lt;code&gt;navetteforyou.com/llms.txt&lt;/code&gt; covering services, coverage areas, languages, and contact info.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why It Matters
&lt;/h2&gt;

&lt;p&gt;AI models increasingly power travel research. &lt;code&gt;llms.txt&lt;/code&gt; provides structured data optimised for LLM consumption, complementing Schema.org structured data.&lt;/p&gt;

&lt;h2&gt;
  
  
  AEO Strategy
&lt;/h2&gt;

&lt;p&gt;This is part of Answer Engine Optimisation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;llms.txt&lt;/strong&gt; for direct LLM discovery&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema.org entity graph&lt;/strong&gt; for knowledge panels&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High-authority citations&lt;/strong&gt; on DR 90+ platforms&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Natural language content&lt;/strong&gt; that LLMs can quote&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;em&gt;How we build &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;Marrakech Transport&lt;/a&gt; by &lt;a href="https://www.serenitymoroccotours.com" rel="noopener noreferrer"&gt;Serenity Morocco Tours&lt;/a&gt;. WhatsApp: +212 701 664 704.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Flight Tracking and Smart Waiting: How We Handle Delayed Airport Pickups</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:22:28 +0000</pubDate>
      <link>https://dev.to/navetteforyou/flight-tracking-and-smart-waiting-how-we-handle-delayed-airport-pickups-4mkl</link>
      <guid>https://dev.to/navetteforyou/flight-tracking-and-smart-waiting-how-we-handle-delayed-airport-pickups-4mkl</guid>
      <description>&lt;p&gt;When a guest books a private airport transfer, they expect one thing: someone waiting when they walk through arrivals. But flights are late — regularly. Here’s how we handle delays gracefully.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Marrakech Menara Airport (RAK) receives flights from across Europe, many arriving between midnight and 3 AM. Delays of 30-90 minutes are common during winter disruptions and peak season congestion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Flight-Aware Scheduling
&lt;/h2&gt;

&lt;p&gt;We track every pickup flight using real-time data in three layers:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Pre-Departure Monitoring
&lt;/h3&gt;

&lt;p&gt;We monitor 6 hours before departure. If the flight hasn’t left origin on time, we know before the guest does.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;T-6h: Monitor origin airport
T-0:  Confirm actual takeoff
T+2h: Calculate real arrival
T+3h: Dispatch driver on actual ETA
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. In-Flight Tracking
&lt;/h3&gt;

&lt;p&gt;We calculate arrival windows from departure time, position, speed, route history, and weather. This gives a 15-minute window accurate enough for driver dispatch.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Smart Dispatch
&lt;/h3&gt;

&lt;p&gt;The driver arrives 10-15 minutes before the guest clears immigration — enough buffer without excessive waiting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Guest Experience
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Booking confirmation includes the flight number&lt;/li&gt;
&lt;li&gt;If delayed: WhatsApp message “Your driver will be there when you land”&lt;/li&gt;
&lt;li&gt;On arrival: name on the board, driver ready&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No phone calls. No frantic messages at 2 AM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Aggregated flight data with fallbacks&lt;/li&gt;
&lt;li&gt;5-minute TTL status cache&lt;/li&gt;
&lt;li&gt;Event-driven dispatch&lt;/li&gt;
&lt;li&gt;WhatsApp Business API templates&lt;/li&gt;
&lt;li&gt;Edge functions, near-zero cold start&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;How we operate &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;Marrakech Transport&lt;/a&gt; — by &lt;a href="https://www.serenitymoroccotours.com" rel="noopener noreferrer"&gt;Serenity Morocco Tours&lt;/a&gt;. WhatsApp: +212 701 664 704.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>api</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Automating Price Validation Across 633 Static Pages Before Every Deploy</title>
      <dc:creator>Marrakech Transport</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:08:25 +0000</pubDate>
      <link>https://dev.to/navetteforyou/automating-price-validation-across-633-static-pages-before-every-deploy-24dj</link>
      <guid>https://dev.to/navetteforyou/automating-price-validation-across-633-static-pages-before-every-deploy-24dj</guid>
      <description>&lt;p&gt;Here's a nightmare scenario for any service-oriented website: a pricing error ships to production, a customer sees it, and you're either honouring a wrong price or having an awkward conversation.&lt;/p&gt;

&lt;p&gt;For &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; — a private transfer booking site serving Marrakech — pricing accuracy isn't just a nice-to-have. It's a business rule: no price below a certain floor should ever appear on any page, in any language, in any format. Not in the HTML, not in the structured data, not in a PDF guide.&lt;/p&gt;

&lt;p&gt;We solved this with a pre-deploy validation script that runs in under 10 seconds and catches every violation before it reaches Vercel.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Our site generates 633 static HTML pages at build time across 8 languages. Each page can contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Visible prices&lt;/strong&gt; in the booking widget&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema.org JSON-LD&lt;/strong&gt; with price ranges&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Guide content&lt;/strong&gt; mentioning fare examples&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Meta descriptions&lt;/strong&gt; that sometimes reference pricing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A single typo — &lt;code&gt;300&lt;/code&gt; instead of &lt;code&gt;3000&lt;/code&gt;, or a test value left in a translation file — could propagate across dozens of pages before anyone notices.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: static-price-check.ts
&lt;/h2&gt;

&lt;p&gt;The script is deceptively simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;readdir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;readFile&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"node:fs/promises"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;join&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"node:path"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;FLOOR&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// MAD — nothing below this should appear&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;DIST_DIR&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"dist"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;PRICE_REGEX&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;&lt;span class="no"&gt;MAD&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;درهم&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="no"&gt;DH&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gi&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;ALT_REGEX&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;&lt;span class="no"&gt;MAD&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;درهم&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="no"&gt;DH&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gi&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;walkHtml&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AsyncGenerator&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;entry&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;readdir&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;withFileTypes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isDirectory&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;yield&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;walkHtml&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;endsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;".html"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;pages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amounts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;violations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nf"&gt;walkHtml&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;DIST_DIR&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;html&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;readFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;regex&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;PRICE_REGEX&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;ALT_REGEX&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;regex&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nf"&gt;isNaN&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;amounts&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="no"&gt;FLOOR&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;violations&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${file}: ${match[0]} (${value} MAD)`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Scanned ${pages} pages, ${amounts} amounts.`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;violations&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"FAIL — prices below floor:"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;violations&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`  ${v}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"PASS"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What It Catches
&lt;/h2&gt;

&lt;p&gt;The regex patterns match prices in multiple formats:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;MAD 600&lt;/code&gt; / &lt;code&gt;600 MAD&lt;/code&gt; (English/European format)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;درهم 600&lt;/code&gt; / &lt;code&gt;600 درهم&lt;/code&gt; (Arabic format)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;DH 600&lt;/code&gt; / &lt;code&gt;600 DH&lt;/code&gt; (informal Moroccan format)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;1,200 MAD&lt;/code&gt; / &lt;code&gt;MAD 1.200&lt;/code&gt; (thousands separators)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It scans the raw HTML, which means it catches prices in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Visible text content&lt;/li&gt;
&lt;li&gt;JSON-LD structured data blocks&lt;/li&gt;
&lt;li&gt;Alt text on images&lt;/li&gt;
&lt;li&gt;Meta tags&lt;/li&gt;
&lt;li&gt;PDF link text&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Integration with the Deploy Pipeline
&lt;/h2&gt;

&lt;p&gt;The script runs as a gate before every production deploy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bun run build           &lt;span class="c"&gt;# Generate all 633 pages&lt;/span&gt;
bun scripts/static-price-check.ts  &lt;span class="c"&gt;# Validate pricing&lt;/span&gt;
npx vercel deploy --prebuilt --prod --yes  &lt;span class="c"&gt;# Deploy only if PASS&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the script exits with code 1 (violations found), the deploy doesn't happen. This is enforced both locally and could be added to CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real Numbers
&lt;/h2&gt;

&lt;p&gt;On our last deploy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Scanned 633 pages, 17113 amounts.
PASS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;17,113 price amounts checked across 633 pages in about 4 seconds. The script is fast because it's just string scanning — no DOM parsing, no headless browser, no network requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Matters Beyond Pricing
&lt;/h2&gt;

&lt;p&gt;The pattern generalises. Any business rule that can be expressed as "this value must never appear in the output" can use the same approach:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Phone numbers:&lt;/strong&gt; Ensure only your official number appears (catch test numbers left in translations)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Competitor names:&lt;/strong&gt; Flag accidental mentions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deprecated URLs:&lt;/strong&gt; Catch old domains that should have been updated&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Banned words:&lt;/strong&gt; Ensure brand guidelines are met across all locales&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Regex is good enough.&lt;/strong&gt; We considered using a proper HTML parser, but for price extraction, regex against the raw HTML is simpler, faster, and catches everything including content inside &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags (where JSON-LD lives).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run it on the build output, not the source.&lt;/strong&gt; Scanning &lt;code&gt;dist/&lt;/code&gt; catches issues from every layer: content files, translation strings, computed values, template logic. Scanning source files would miss half the surface area.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Make it fast.&lt;/strong&gt; A validation script that takes 30 seconds gets skipped. Ours takes 4 seconds. That's fast enough to run on every single deploy without friction.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Exit codes matter.&lt;/strong&gt; The script exits 0 on pass, 1 on fail. This lets it slot into any CI pipeline with zero configuration — &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; chaining handles the rest.&lt;/p&gt;

&lt;p&gt;The full stack: &lt;a href="https://astro.build" rel="noopener noreferrer"&gt;Astro&lt;/a&gt; for static generation, &lt;a href="https://bun.sh" rel="noopener noreferrer"&gt;Bun&lt;/a&gt; for the validation script runtime, &lt;a href="https://vercel.com" rel="noopener noreferrer"&gt;Vercel&lt;/a&gt; for hosting.&lt;/p&gt;

&lt;p&gt;Operated by Serenity Morocco Tours — visit &lt;a href="https://www.navetteforyou.com" rel="noopener noreferrer"&gt;navetteforyou.com&lt;/a&gt; or reach us on WhatsApp at +212 701 664 704.&lt;/p&gt;

</description>
      <category>testing</category>
      <category>typescript</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
