forked from mdreizin/gatsby-plugin-robots-txt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't require siteUrl when host and sitemap are set (mdreizin#13)
* chore: format README.md * fix: don't require siteUrl when host and sitemap are set While the case of siteUrl not beeing present was handled, the code didn't actually run because the graphql client emits an error when a non present field is queried. This changes the behaviour so that a query is only executed when either host or sitemap aren't set. The change should be non-breaking.
- Loading branch information
1 parent
78a2814
commit d343a05
Showing
2 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters