silverwolf-x's picture
download
raw
525 Bytes
import type { CodegenConfig } from "@graphql-codegen/cli";
import { loadEnvConfig } from "@next/env";
const projectDir = process.cwd();
loadEnvConfig(projectDir);
const config: CodegenConfig = {
overwrite: true,
schema: {
[`${process.env.NEXT_PUBLIC_WORDPRESS_API_URL}/graphql`]: {
headers: {
"User-Agent": "Codegen",
},
},
},
generates: {
"src/gql/": {
preset: "client",
},
"src/gql/schema.gql": {
plugins: ["schema-ast"],
},
},
};
export default config;

Xet Storage Details

Size:
525 Bytes
·
Xet hash:
8be9255d5c965d92df6f082ca041cae97ec01607b66e5170a64b73040e80c55c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.