/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
examples/with-grafbase/codegen.ts
26 строк
498 B
Steven
chore(examples): use default prettier for examples/templates (#60530)
12 янв 2024, 02:01
Не верифицирован
12 янв 2024, 02:01
4466ba4
Код
Авторство
О чём код?
import { CodegenConfig } from "@graphql-codegen/cli"; const url = process.env.GRAFBASE_API_URL as string; const xApiKey = process.env.GRAFBASE_API_KEY as string; const config: CodegenConfig = { schema: [ { [url]: { headers: { "x-api-key": xApiKey, }, }, }, ], documents: ["app/**/*.tsx", "app/**/*.ts"], ignoreNoDocuments: true, generates: { "./gql/": { preset: "client", plugins: [], }, }, }; export default config;