rano/codegen.ts
Ankit Patial 45c318b897 - graph, dotenv read
- graph, cors and secure header
- web, urql client basic setup
2024-11-04 11:35:43 +05:30

14 lines
298 B
TypeScript

import { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
schema: `${process.env.GRAPH_URL}/query`,
documents: ['./web/lib/gql/*.ts'],
generates: {
'./web/lib/gql/graph.d.ts': {
plugins: ['typescript', 'typescript-operations']
}
}
};
export default config;