mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-31 20:57:55 +00:00 
			
		
		
		
	| @@ -1,7 +1,15 @@ | |||||||
| import { CodegenConfig } from '@graphql-codegen/cli'; | import { CodegenConfig } from '@graphql-codegen/cli'; | ||||||
|  |  | ||||||
| const config: CodegenConfig = { | 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, |   overwrite: true, | ||||||
|   documents: ['./src/**/*.ts', '!src/generated/**/*.*' ], |   documents: ['./src/**/*.ts', '!src/generated/**/*.*' ], | ||||||
|   generates: { |   generates: { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Pimpalkar
					Aditya Pimpalkar