twenty/front/codegen.js
2023-06-01 11:20:05 +02:00

21 lines
445 B
JavaScript

module.exports = {
schema: process.env.REACT_APP_API_URL,
documents: ['./src/**/*.tsx', './src/**/*.ts'],
overwrite: true,
generates: {
'./src/generated/graphql.tsx': {
plugins: [
'typescript',
'typescript-operations',
'typescript-react-apollo',
],
config: {
skipTypename: false,
withHooks: true,
withHOC: false,
withComponent: false,
},
},
},
};