Whitelist and blacklist Wordpress REST routes

This commit is contained in:
ponas committed 2019-01-27 11:36:37 +01:00
1 parent e198ec3c23
commit 051a45facb
1 file changed
+16
+16
View File
@@ -19,6 +19,22 @@ module.exports = {
auth: {},
// Set to true to debug endpoints on 'gatsby build'
verboseOutput: true,
includedRoutes: [
"**/*/*/categories",
"**/*/*/events",
"**/*/*/posts",
"**/*/*/pages",
"**/*/*/media",
"**/*/*/tags",
"**/*/*/taxonomies",
"**/*/*/users",
],
excludedRoutes: [
"/yoast/**",
"**/*/*/comments",
"**/*/*/settings",
"**/*/*/users/me",
],
},
},
'gatsby-plugin-sharp',