JSPM

react-seo-fix

1.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 6
    • Score
      100M100P100Q32358F
    • License MIT

    Add full SEO optimisation to any React/Vite SPA in one command. Adds pre-rendering, per-page meta tags, sitemap, and robots.txt.

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-seo-fix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      react-seo-fix

      Add full SEO optimisation to any React/Vite SPA in one command.

      Installs pre-rendering, per-page meta tags, sitemap.xml, and robots.txt — making your site fully visible to Google, AI search engines, and social media previews.

      Usage

      Open the terminal in your project folder and run:

      npx react-seo-fix

      Answer 3 questions (your domain, site title, and page routes), and the tool does the rest.

      What it installs

      • src/entry-server.tsx — server-side rendering entry point
      • scripts/prerender.mjs — generates pre-rendered HTML for every page at build time
      • scripts/generate-sitemap.mjs — generates sitemap.xml
      • public/robots.txt — allows all search engines and AI crawlers
      • public/sitemap.xml — initial sitemap
      • netlify.toml — Netlify deployment configuration

      What it updates

      • package.json — adds the build script pipeline and react-helmet-async dependency
      • vite.config.ts — adds build configuration for SSR

      After running

      1. Add <Helmet> tags to each page in your app (see the full guide at reactseo.co.uk)
      2. Run npm run build to test the build locally
      3. Push to GitHub and deploy to Netlify
      4. Submit your sitemap to Google Search Console

      Full guide

      reactseo.co.uk