BEBahae Eddine
back to blog
Growth & StrategyJun 28, 20265 min read

Full-Stack + SEO: How MSLEGY.com Won the First Page

The case study of a corporate site that had to perform — architecture, Core Web Vitals as acceptance criteria, and an SEO system that owns the first page.

MSLEGY.com looks like a straightforward corporate website. It is the kind of project that's easy to underestimate, because the interesting work is invisible: the site had to load instantly, rank on the first page for its keywords, and convert visitors into contacts. This is the case study — the full-stack and SEO method that got it there.

The problem: a website that works as a sales asset

The client didn't want a brochure. They wanted a website that performed like a member of the sales team: fast on mobile (where most of their traffic comes from), visible on the first page of Google, and designed to turn a visitor into an inquiry. Most agencies deliver a design and call it done; the ranking work was the actual deliverable.

That framing changes everything about the build. When SEO is the product, every technical decision — architecture, rendering, metadata, performance — gets made against a standard you can measure.

Architecture for a measurable target

The site is a Next.js build with server-rendered pages, structured data, and clean URLs. The entire sitemap is static and pre-rendered: every route exists as HTML at build time, which is the single best thing you can do for both performance and crawlability.

ts
// every page ships structured data + a canonical URL
export const metadata: Metadata = {
  title: "…",
  alternates: { canonical: "https://mslegy.com/about" },
  openGraph: { type: "website", siteName: "MSLEGY" },
  robots: { index: true, follow: true },
};

The choice of a pre-rendered stack matters beyond buzzwords: the server doesn't wait for JavaScript to build a page, so the content is visible to crawlers and humans in the same instant. There is no "SEO plugin"; the architecture is the SEO.

Core Web Vitals as acceptance criteria

Here is the discipline that most projects skip: Core Web Vitals were acceptance criteria, not a nice-to-have. LCP, CLS, and INP were measured on every deploy, and a regression failed the build the way a broken test would. That shifts performance from a hope to a contract.

Concretely, that meant:

  • Self-hosted everything. Fonts, scripts, and images served from one origin — no render-blocking third-party requests, no DNS lookups for a host that exists only to serve a font.
  • A performance budget enforced by construction. Static rendering by default, images sized and encoded properly, and no runtime data fetching.
  • CLS eliminated by design. Every layout element has reserved space, so nothing shifts while the page loads.

None of this is exotic. It is engineering discipline, applied the same way you'd apply it to any system with a hard latency requirement. The site loads fast because it was built to a number, not because we got lucky.

The SEO system: keywords map to pages

The SEO program was a system, not a task list. The method:

  1. Keyword intent mapped to pages. Each keyword group was assigned to exactly one page with one job. No keyword-stuffed home page; every page answers a specific question.
  2. Page intent mapped to action. Each page was designed to convert its audience — the contact action was part of the page's architecture, not an afterthought.
  3. Everything measured from day one. Search Console, analytics, and Core Web Vitals dashboards were wired before launch. Every post-launch decision was data-driven.
text
keyword group        →  page        →  conversion action
"mslegy services"    →  /services   →  contact / quote
"what we do"         →  /about      →  contact
"[service] + cost"   →  /pricing    →  schedule a call

This is the part most people miss: SEO is not a content hoarding strategy. It is an information architecture strategy — deciding what each page is for, and making sure the search engine and the human agree on it.

The technical SEO checklist that actually mattered

The boring list did most of the work:

  • Semantic headings and structure — one H1 per page, a real hierarchy, and headings that match the question being answered.
  • Schema.org markup — Organization, Article, and FAQ structures so the engine knows what each page is about before reading it.
  • XML sitemap and robots handled explicitly — generated from the same source of truth as the pages, so they can never drift out of sync.
  • Canonical URLs on every page — no duplicate-content ambiguity, ever.
  • Core Web Vitals in the green — performance as the foundation that everything else stands on.

None of these items is a hack. Collectively they make the site trivially easy for an engine to understand and trivially pleasant for a human to use — and that alignment is the whole game.

There is also a compounding effect worth naming: a technically clean site is cheap to maintain. Because the metadata, sitemap, and canonical structure are generated from one source of truth, a new page ships SEO-complete by default. The team can publish without a pre-flight checklist, and the structure never drifts. When the cost of doing the right thing trends to zero, the right thing gets done consistently — which is exactly what a first-page position on autopilot requires.

What the metrics said

The site holds first-page positions for its target keywords, and the behavior that matters — visitors arriving and converting — followed the visibility. The correlation was clean because there was nothing to confuse it: no paid traffic masking the story, no vanity channels.

The lasting insight is this: MSLEGY.com ranks because it's fast, structured, and honest about what each page is for. The SEO and the engineering are the same discipline — removing friction between the visitor and the answer — and the SEO system keeps running on autopilot because it's built into the architecture, not bolted on.

If you're building a site that needs to perform — or you want a second pass on an existing one — let's talk. This is exactly the kind of full-stack and SEO work we do at XAI.ma.

Liked this? Let's talk.

I lead teams designing and shipping AI systems — open to consulting, research collaborations, or hiring me to lead yours. AI engineering, RAG, multi-agent systems, and digital transformation.

Get in touch