gatsbyjs / gatsby

The best React-based framework with performance, scalability and security built in.
https://www.gatsbyjs.com
MIT License
55.13k stars 10.33k forks source link

gatsby-plugin-sitemap is generating default sitemap even when given custom options #39006

Closed maghaffar closed 3 weeks ago

maghaffar commented 4 weeks ago

Preliminary Checks

Description

I want to generate custom sitemap for my site and I want to change the priority value based on the when the page is modified. For this I am using custom options of gatsby-plugin-sitemap as shown below: image But the plugin is always generating the default sitemap like this given below: image

I don't know what is happening? Can someone please explain this? Can we change the changefreq and priority values?

Reproduction Link

https://herb.co/sitemap.xml

Steps to Reproduce

I am not able to reproduce I can give the link of my site https://herb.co/sitemap.xml

Expected Result

N/A

Actual Result

N/A

Environment

gatsby: 4.12.0
gatsby-plugin-sitemap:4.0.0

Config Flags

No response

maghaffar commented 4 weeks ago

@janson @mojodna @mudge @farcaller Kindly reply to this and give solution to this problem.

Viktor19931 commented 3 weeks ago

@maghaffar use advanced sitemap plugin Its more flexible

maghaffar commented 3 weeks ago

I was'nt able to create sitemap by using the plugin. I created using my own custom code and uploaded. Concerned people of the plugin should have to do something for this problem