23 lines
527 B
YAML
23 lines
527 B
YAML
overwrite: true
|
|
schema:
|
|
- 'https://graphql.datocms.com/':
|
|
headers:
|
|
Authorization: Bearer ${NEXT_PUBLIC_CMS_ACCESS_TOKEN}
|
|
documents: './src/**/*.{gql,graphql}'
|
|
generates:
|
|
./src/lib/cms/generated.ts:
|
|
plugins:
|
|
- 'typescript'
|
|
- 'typescript-operations'
|
|
- 'typescript-graphql-request'
|
|
config:
|
|
namingConvention:
|
|
enumValues: keep
|
|
./src/lib/cms/graphql.schema.json:
|
|
plugins:
|
|
- 'introspection'
|
|
hooks:
|
|
afterOneFileWrite:
|
|
- yarn lint --fix
|
|
- yarn codegen-fix
|