Skip to content

Commit

Permalink
fix: Add gridsome.server.js example
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtev committed Jan 14, 2019
1 parent a8bf4c1 commit 41f6a71
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gridsome.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This is where project configuration and installed plugin options are located.
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config

// Changes here requires a server restart to work properly.
// Changes here requires a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`

module.exports = {
Expand Down
12 changes: 12 additions & 0 deletions gridsome.server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Server API makes it possible to hook into various parts of Gridsome
// on server-side and add custom data to the GraphQL data layer.
// Learn more: https://gridsome.org/docs/server-api

// Changes here requires a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`

module.exports = function (api) {
api.loadSource(store => {
// Use the Data store API here: https://gridsome.org/docs/data-store-api
})
}

0 comments on commit 41f6a71

Please sign in to comment.