kleros/kleros-v2

View on GitHub
web-devtools/codegen.ts

Summary

Maintainability
A
1 hr
Test Coverage
import type { CodegenConfig } from "@graphql-codegen/cli";

import { getGraphqlUrl } from "./src/utils/getGraphqlUrl";

const config: CodegenConfig = {
  overwrite: true,
  schema: [getGraphqlUrl(false), getGraphqlUrl(true)],
  documents: "./src/hooks/queries/*.ts",
  generates: {
    "./src/graphql-generated/": {
      preset: "client",
    },
  },
};

export default config;