Skip to content

rfedoruk/vite-plugin-react-tanstack-router-sitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vite-plugin-tanstack-router-sitemap

A Vite plugin that automatically generates a sitemap.xml from your TanStack Router routes.

Installation

npm install --save-dev vite-plugin-tanstack-router-sitemap

Usage

In your vite.config.ts:

import { defineConfig } from "vite";
import sitemapPlugin from "vite-plugin-tanstack-router-sitemap";

export default defineConfig({
  plugins: [
    sitemapPlugin({
      hostname: "https://yourdomain.com",
      routes: {
        "/": {
          changefreq: "daily",
          priority: 1.0,
        },
      },
    }),
  ],
});

About

Vite plugin to generate sitemap.xml file for tanstack router.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published