Skip to content

Commit

Permalink
Disable pretty-log for next.js example
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jan 31, 2022
1 parent 5d11e9b commit 57fa5ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@graphql-yoga/node": "0.1.0-alpha.3",
"@types/react": "17.0.38",
"graphql": "^16.1.0",
"next": "12.0.7",
"react": "17.0.2",
Expand Down
5 changes: 3 additions & 2 deletions examples/nextjs/pages/api/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
import { createServer } from '@graphql-yoga/node'

const server = createServer({
typeDefs: 'type Query {hello: String!}',
resolvers: { Query: { hello: () => 'Hello World' } },
cors: false,
endpoint: '/api/graphql',
logging: {
prettyLog: false,
},
})

export const config = {
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5389,7 +5389,7 @@ __metadata:
languageName: node
linkType: hard

"@types/react@npm:*, @types/react@npm:^17.0.15, @types/react@npm:^17.0.37":
"@types/react@npm:*, @types/react@npm:17.0.38, @types/react@npm:^17.0.15, @types/react@npm:^17.0.37":
version: 17.0.38
resolution: "@types/react@npm:17.0.38"
dependencies:
Expand Down Expand Up @@ -14670,6 +14670,7 @@ __metadata:
resolution: "nextjs@workspace:examples/nextjs"
dependencies:
"@graphql-yoga/node": 0.1.0-alpha.3
"@types/react": 17.0.38
eslint: 8.4.1
eslint-config-next: 12.0.7
graphql: ^16.1.0
Expand Down

0 comments on commit 57fa5ef

Please sign in to comment.