-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sitemap route exclusions #4770
Sitemap route exclusions #4770
Conversation
Deploy preview for using-drupal ready! Built with commit 2097e1b |
Deploy preview for gatsbygram ready! Built with commit 2097e1b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement, thanks!
@@ -63,4 +66,5 @@ plugins: [ | |||
] | |||
``` | |||
|
|||
If you are using `pathPrefix` in `gatsby-config.js`, you must run `gatsby build --prefix-paths` to build a sitemap with the prefix included. See [path prefix docs](https://www.gatsbyjs.org/docs/path-prefix/#production-build). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious why was this added here? There's already a standalone doc page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was something that tripped me up when testing, largely since I haven't used or needed pathPrefix
before.
I need to take another shot at the pathPrefix
stuff before this ready to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, makes sense. Please remove it though as it's not relevant to this plugin other than the plugin should support it.
Signed-off-by: Geoffrey Sechter <geoffrey.sechter@gmail.com>
0675fda
to
d3b77ba
Compare
@KyleAMathews I took another look at the pathPrefix issue and described what I found in #4723. I just removed the relevant |
Thanks @lightstrike! Gatsby recently added a requirement that contributors sign-off commits. Could you do Check out the new Developer Certificate of Origin docs or comment here if you've any questions. Once that's in, this should be good to merge. |
I have one small request - can you add |
4d8703d
to
a72315d
Compare
Signed-off-by: Geoffrey Sechter <geoffrey.sechter@gmail.com>
a72315d
to
2097e1b
Compare
@m-allanson and @pieh Done and done. 😄 I had some DCO issues and ended up running I also got a working version of the |
Thanks! |
I would like to add support for excluding multiple routes from the sitemap via globbing, using
minimatch
like in #4538.I also took a crack at addressing #4723 but it didn't work on my side. I haven't used
pathPrefix
before, maybe someone else can check?