netlify-plugin-submit-sitemap

Automatically submit your sitemap to Google, Bing, and Yandex!

Usage no npm install needed!

<script type="module">
  import netlifyPluginSubmitSitemap from 'https://cdn.skypack.dev/netlify-plugin-submit-sitemap';
</script>

README

Netlify Build Plugin: Automatically submit your sitemap after every production build

Automatically submit your sitemap to Google, Bing, and Yandex after every production build!

This plugin will notify the search engines after every production build about your latest sitemap. The plugin can be used without any configuration if using the defaults.

Usage

To install, add the following lines to your netlify.toml file:

[build]
  publish = "public"

[[plugins]]
  package = "netlify-plugin-submit-sitemap"

    [plugins.inputs]

    # The base url of your site (optional, default = main URL set in Netlify)
    baseUrl = "https://example.com"

    # Path to the sitemap URL (optional, default = /sitemap.xml)
    sitemapPath = "/sitemap.xml"

    # Enabled providers to submit sitemap to (optional, default = 'google', 'bing', 'yandex'). Possible providers are currently only 'google', 'bing', 'yandex'.
    providers = [
        "google",
        "bing",
        "yandex"
    ]

Note: The [[plugins]] line is required for each plugin, even if you have other plugins in your netlify.toml file already.