...
1import type { CodegenConfig } from '@graphql-codegen/cli';
2
3const config: CodegenConfig = {
4 overwrite: true,
5 schema: process.env.VITE_SERVER_URL ?? 'http://localhost:8080/query',
6 documents: 'src/**/*.graphql',
7 generates: {
8 'src/generated/': {
9 preset: 'client-preset'
10 },
11 'src/generated/schema-fetched.graphql': {
12 plugins: ['schema-ast'],
13 },
14 'src/generated/schema-introspection.json': {
15 plugins: ['introspection'],
16 }
17 },
18};
19
20export default config;
View as plain text