kanto-tactics.com is a single-page application (SPA). You can tell by the hashed CSS (/_s/...) and the client-side routing. But SPAs historically struggle with SEO. How do you rank for "best comps" if the content only exists after JS runs?

The Hybrid Shell
The solution is a hybrid architecture. The routing and the shell are statically generated. When you curl the homepage, you don't get an empty <div id="app">. You get a pre-rendered HTML shell containing:

  • Complete <title> and <meta> tags.
  • A structured <h1> and introductory text.
  • JSON-LD schema markup.

Only the volatile ranking table is fetched client-side. This gives search engines the context they need to rank the page, while keeping the data fresh.

Handling the Language Matrix
Look at the source: the site uses hreflang tags pointing to /es (Spanish) variants.
In an SPA, handling /es/comps requires a robust router setup. You can't just rely on the browser language header.
The architectural choice here is to treat the locale as a first-class route parameter.

When the route changes to /es/..., the app must:

  1. Update the lang attribute in the <html> tag.
  2. Swap the JSON dictionary for UI strings.
  3. Fetch the localized meta tags (or dynamically update document.title).
  4. Ensure the canonical URL points to the localized version, not the root.

If you are building a data tool and relying on organic search, static generation of the shell + dynamic client-side hydration of the data is the most robust pattern.

Check the localized routes at kanto-tactics.com/es.