Skip to content

Instantly share code, notes, and snippets.

View RakaDoank's full-sized avatar

Raka Audira Fauzi RakaDoank

View GitHub Profile
@RakaDoank
RakaDoank / seo-meta-in-spa.md
Last active June 9, 2026 02:19
How do i achieve SEO Meta in Server While The Web Project is Single Page Application (SPA)?

Are you having a trouble about SEO Meta in server while your project is SPA only like React Router or Vue Router?

Can i guess you also don't have so much time for migration on the new framework that can handle server side rendering out of the box like Next.js, Nuxt.js, Gatsby, etc.

Setting the SEO meta in server like <title>, <meta name="description"/> are actually useful for search engine, and also good for showing your summary content in social media app by pasted the full url in Whatsapp, IG, Twitter, etc.

Enough the intermezzo, here we go.

The concept is actually simple, modify the index.html (from bundled source) before it served to the client.