Skip to content

Commit 8d5edde

Browse files
committed
🔨 generate-graphql kjører nå mot lokal spesialist
Vi tenker å fjerne at spesialist slipper gjennom introspection-kall uautentisert i dev.
1 parent 6606c5d commit 8d5edde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphql-codegen.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
overwrite: true
2-
schema: 'https://spesialist.intern.dev.nav.no/graphql'
2+
schema: 'http://localhost:8080/graphql'
33
documents: 'src/io/graphql/**/*.graphql'
44
config:
55
scalars:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lint": "next lint",
1818
"test": "jest",
1919
"tsc": "tsc",
20-
"generate-graphql": "graphql-codegen --config graphql-codegen.yml",
20+
"generate-graphql": "BEARER_TOKEN=$(curl http://localhost:8080/local-token) graphql-codegen --config graphql-codegen.yml",
2121
"prepare": "husky",
2222
"lint-staged": "lint-staged"
2323
},

0 commit comments

Comments
 (0)