Skip to content
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

feat: configurable query for site URL #36

Merged
merged 3 commits into from
Jan 26, 2019
Merged

feat: configurable query for site URL #36

merged 3 commits into from
Jan 26, 2019

Conversation

amclin
Copy link
Contributor

@amclin amclin commented Jan 25, 2019

The core Gatsby sitemap plugin allows for Configurable queries to get the siteUrl. See: https://www.gatsbyjs.org/packages/gatsby-plugin-sitemap

This is necessary because when using Gatsby to generate sites with dynamic URLs, you can't dynamically set the siteMetadata from a data source.

This PR adds the same capability to the robots.txt plugin so that it can behave consistently. If sitemap.xml is using a different domain, then robots.txt should be able to as well.

README.md Outdated Show resolved Hide resolved
@mdreizin mdreizin merged commit 2da7db0 into mdreizin:master Jan 26, 2019
@mdreizin
Copy link
Owner

🎉 This PR is included in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mdreizin
Copy link
Owner

@amclin Have you had a chance to test 1.4.0 version?

@amclin
Copy link
Contributor Author

amclin commented Jan 28, 2019

Just tested in our project with 1.4.0. Working as intended. Thanks for the fast response and merge @mdreizin !

@mdreizin
Copy link
Owner

@amclin Thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants