Skip to content

Commit

Permalink
chore: Add default settings to config
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtev committed Nov 14, 2018
1 parent a2e7298 commit 9d9bd53
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gridsome.config.js
Expand Up @@ -3,7 +3,14 @@ module.exports = {
{
use: '@gridsome/source-wordpress',
options: {
baseUrl: 'YOUR_WORDPRESS_URL'
baseUrl: 'YOUR_WEBSITE_URL', // required
typeName: 'WordPress', // GraphQL schema name (Optional)
perPage: 100, // How many posts to load from server per request (Optional)
concurrent: 10, // How many requests to run simultaneously (Optional)
routes: {
post: '/:year/:month/:day/:slug', //adds route for "post" post type (Optional)
post_tag: '/tag/:slug' // adds route for "post_tag" post type (Optional)
}
}
}
]
Expand Down

0 comments on commit 9d9bd53

Please sign in to comment.