kleros/kleros-v2

View on GitHub
web/codegen.ts

Summary

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

import { getGraphqlUrl } from "utils/getGraphqlUrl";

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

export default config;