Skip to content

Commit

Permalink
fix(gatsby-source-wordpress): use correct glob pattern paths for rout…
Browse files Browse the repository at this point in the history
…es (#10887)
  • Loading branch information
gurpreet-hanjra authored and pieh committed Jan 8, 2019
1 parent b0adb15 commit c793419
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/gatsby-source-wordpress/README.md
Expand Up @@ -117,16 +117,16 @@ module.exports = {
// all routes that begin with `yoast` from fetch.
// Whitelisted routes using glob patterns
includedRoutes: [
"/*/*/categories",
"/*/*/posts",
"/*/*/pages",
"/*/*/media",
"/*/*/tags",
"/*/*/taxonomies",
"/*/*/users",
"**/*/*/categories",
"**/*/*/posts",
"**/*/*/pages",
"**/*/*/media",
"**/*/*/tags",
"**/*/*/taxonomies",
"**/*/*/users",
],
// Blacklisted routes using glob patterns
excludedRoutes: ["/*/*/posts/1456"],
excludedRoutes: ["**/*/*/posts/1456"],
// use a custom normalizer which is applied after the built-in ones.
normalizer: function({ entities }) {
return entities
Expand Down Expand Up @@ -197,13 +197,13 @@ If an endpoint is whitelisted and not blacklisted, it will be fetched. Otherwise

```javascript
includedRoutes: [
"/*/*/posts",
"/*/*/pages",
"/*/*/media",
"/*/*/categories",
"/*/*/tags",
"/*/*/taxonomies",
"/*/*/users",
"**/*/*/posts",
"**/*/*/pages",
"**/*/*/media",
"**/*/*/categories",
"**/*/*/tags",
"**/*/*/taxonomies",
"**/*/*/users",
],
```

Expand Down

0 comments on commit c793419

Please sign in to comment.