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 92afbf1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
},
"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",
"react-dom": "17.0.2"
},
"devDependencies": {
"eslint": "8.4.1",
"eslint-config-next": "12.0.7"
"eslint-config-next": "12.0.7",
"typescript": "4.5.5"
}
}
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
8 changes: 5 additions & 3 deletions 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,12 +14670,14 @@ __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
next: 12.0.7
react: 17.0.2
react-dom: 17.0.2
typescript: 4.5.5
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -19236,7 +19238,7 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:*, typescript@npm:^4.4.3, typescript@npm:^4.4.4, typescript@npm:^4.5.4":
"typescript@npm:*, typescript@npm:4.5.5, typescript@npm:^4.4.3, typescript@npm:^4.4.4, typescript@npm:^4.5.4":
version: 4.5.5
resolution: "typescript@npm:4.5.5"
bin:
Expand All @@ -19256,7 +19258,7 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@*#~builtin<compat/typescript>, typescript@patch:typescript@^4.4.3#~builtin<compat/typescript>, typescript@patch:typescript@^4.4.4#~builtin<compat/typescript>, typescript@patch:typescript@^4.5.4#~builtin<compat/typescript>":
"typescript@patch:typescript@*#~builtin<compat/typescript>, typescript@patch:typescript@4.5.5#~builtin<compat/typescript>, typescript@patch:typescript@^4.4.3#~builtin<compat/typescript>, typescript@patch:typescript@^4.4.4#~builtin<compat/typescript>, typescript@patch:typescript@^4.5.4#~builtin<compat/typescript>":
version: 4.5.5
resolution: "typescript@patch:typescript@npm%3A4.5.5#~builtin<compat/typescript>::version=4.5.5&hash=493e53"
bin:
Expand Down

0 comments on commit 92afbf1

Please sign in to comment.