Skip to content

Commit

Permalink
fix(codegen): document syntax
Browse files Browse the repository at this point in the history
- ? is preventing the codegen from matching anything
  • Loading branch information
MrOrz committed Jan 10, 2024
1 parent c7d71dd commit 9982f17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
// schema: 'http://localhost:5000/graphql',
schema: 'https://dev-api.cofacts.tw/graphql',
documents: ['pages/**/*.tsx?', 'components/**/*.tsx?', 'lib/**/*.tsx'],
documents: [
'pages/**/*.{ts,tsx}',
'components/**/*.{ts,tsx}',
'lib/**/*.{ts,tsx}',
],
generates: {
'./typegen/': {
preset: 'client',
Expand Down

0 comments on commit 9982f17

Please sign in to comment.