Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
created SCHEMA_PATH env var that specifies where codegen.ts get its s…
Browse files Browse the repository at this point in the history
…chema from
  • Loading branch information
kaimsfd committed Oct 19, 2023
1 parent 7f832f4 commit 69634df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .devcontainer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ services:
volumes:
- ..:/workspace:z
command: sleep infinity
environment:
SCHEMA_PATH: http://backend

opa:
image: docker.io/openpolicyagent/opa:0.53.1
Expand Down
2 changes: 1 addition & 1 deletion frontend/codegen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
schema: '../pin_packing.graphql',
schema: process.env.SCHEMA_PATH,
documents: ['src/**/*.{ts,tsx}'],
generates: {
'./src/__generated__/': {
Expand Down

0 comments on commit 69634df

Please sign in to comment.