Connected authentication to the backend and fixed CORS
This commit is contained in:
16
frontend/codegen.yml
Normal file
16
frontend/codegen.yml
Normal file
@ -0,0 +1,16 @@
|
||||
overwrite: true
|
||||
schema: "http://127.0.0.1:8000/graphql"
|
||||
documents:
|
||||
- 'src/queries/*.graphql'
|
||||
generates:
|
||||
./src/generated/graphql.ts:
|
||||
plugins:
|
||||
- typescript
|
||||
- typescript-operations
|
||||
- typescript-react-query
|
||||
config:
|
||||
fetcher:
|
||||
fetchParams:
|
||||
headers:
|
||||
Content-Type: application/json
|
||||
endpoint: "http://localhost:8000/graphql"
|
Reference in New Issue
Block a user