The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix: twenty-chrome-extension:"graphql:generate" (#5649)
Aditya Pimpalkar008813f19423
diff --git a/packages/twenty-chrome-extension/codegen.ts b/packages/twenty-chrome-extension/codegen.tsindex 30ed008a0d0..4a3c8bdc0ba 100644--- a/packages/twenty-chrome-extension/codegen.ts+++ b/packages/twenty-chrome-extension/codegen.ts@@ -1,9 +1,17 @@import { CodegenConfig } from '@graphql-codegen/cli';const config: CodegenConfig = {- schema: ['http://localhost:3000/graphql'],+ schema: [{+ [`${import.meta.env.VITE_SERVER_BASE_URL}/graphql`]: {+ // some of the mutations and queries require authorization (people or companies)+ // so to regenrate the schema with types we need to pass a auth token+ headers: {+ Authorization: 'YOUR-TOKEN-HERE',+ },+ }+ }],overwrite: true,- documents: ['./src/**/*.ts', '!src/generated/**/*.*'],+ documents: ['./src/**/*.ts', '!src/generated/**/*.*' ],generates: {'./src/generated/graphql.tsx': {plugins: [