Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rspress-plugin-sitemap

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rspress-plugin-sitemap

Rspress plugin for Automatically generate SEO(Search Engine Optimization)-related sitemaps

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

rspress-plugin-sitemap NPM Version

Rspress plugin for Automatically generate SEO(Search Engine Optimization)-related sitemaps

Usage

npm i rspress-plugin-sitemap
yarn add rspress-plugin-sitemap
pnpm add rspress-plugin-sitemap
import { defineConfig } from "rspress/config";
import sitemap from "rspress-plugin-sitemap";

export default defineConfig({
  plugins: [
    sitemap({
      domain: "https://rspress.dev",
      customMaps: {
        "/sample": {
          loc: "/sample",
          lastmod: "2024-04-27T07:44:43.422Z",
          priority: "0.7",
          changefreq: "always",
        },
      },
      defaultChangeFreq: "monthly",
      defaultPriority: "0.5",
    }),
  ],
});

Configure

This plugin supports passing in an object configuration. The properties of this object configuration are as follows:

interface Options {
  domain?: string; // your domain
  customMaps?: CustomMaps; // custom your sitemap
  defaultPriority?: Priority; // defaultPriority 0.5
  defaultChangeFreq?: ChangeFreq; // defaultPriority monthly
}
  • domain Customize your domain name
  • customMaps Customize the sitemap for a specific path
  • defaultPriority Setting default global priority
  • defaultChangeFreq Setting default global changeFreq

FAQs

Package last updated on 02 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc