graphql-engine/community/sample-apps/gridsome-postgres-graphql/gridsome.config.js
hasura-bot dcd3ccb75b docs: update gridsome-postgres-graphql sample app
GITHUB_PR_NUMBER: 8361
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8361

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4110
Co-authored-by: Catalin Pit <25515812+catalinpit@users.noreply.github.com>
GitOrigin-RevId: d13d274dfb529fcd92d93cf4ecc2bfb949fd2cc3
2022-04-05 14:53:27 +00:00

22 lines
545 B
JavaScript

// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
module.exports = {
siteName: "Gridsome",
plugins: [
{
use: "@gridsome/source-graphql",
options: {
url: "http://localhost:8080/v1/graphql",
fieldName: "hasura",
headers: {
// Authorization: `Bearer ${process.env.AUTH_TOKEN}`,
},
},
},
],
};