Skip to content

netlify-plugin-sitemap doesn't generate a sitemap during manual deployment by netlify CLI #97

@ybabenkoJapp

Description

@ybabenkoJapp

Hi!
I have noticed the netlify-plugin-sitemap doesn't generate a sitemap during manual deployment by netlify CLI. When the website is live I get not found.
I deployed it in the netlify app and the sitemap was generated.
Please help me to understand how to manage it.

To Reproduce

Steps to reproduce the behavior:

  1. Deploy it to Netlify

I use a such command to deploy the website:


     netlify deploy --site ****************  --auth *********************


netlify.toml 

[build]
  publish = "dist"

[[headers]]
  for = "/*"
  [headers.values]
    Accept-Encoding = "gzip, compress, br"

#Sitemap
[[plugins]]
  package = "@netlify/plugin-sitemap"

  [plugins.inputs]
    buildDir = "dist"
    filePath = "./sitemap.xml"


"dependencies": {
    "@netlify/plugin-sitemap": "^0.8.1",
}

  1. See that the sitemap file is missing after deployment.

I want to get a generated sitemap after manual deployment instead always going to the Netlify app and triggering the deploy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions