-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
426 changed files
with
69,025 additions
and
22,726 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
dist | ||
.cache | ||
.test | ||
.vercel | ||
.astro | ||
temp | ||
node_modules | ||
.github | ||
.changeset | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
"NUON", | ||
"offchain", | ||
"offramp", | ||
"permissionally", | ||
"preact", | ||
"preconfigured", | ||
"quickstarts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { CodegenConfig } from "@graphql-codegen/cli" | ||
import dotenv from "dotenv" | ||
|
||
dotenv.config() | ||
|
||
const requiredEnvVars = ["GRAPHQL_SERVER_URL", "GRAPHQL_API_TOKEN"] as const | ||
|
||
requiredEnvVars.forEach((envVar) => { | ||
if (!process.env[envVar]) { | ||
throw new Error(`Environment variable ${envVar} is not set. Please check your .env file.`) | ||
} | ||
}) | ||
|
||
const config: CodegenConfig = { | ||
schema: [ | ||
{ | ||
[process.env.GRAPHQL_SERVER_URL as string]: { | ||
headers: { | ||
Authorization: `${process.env.GRAPHQL_API_TOKEN}`, | ||
}, | ||
}, | ||
}, | ||
], | ||
documents: "src/graphql/queries/**/*.gql", | ||
generates: { | ||
"src/graphql/generated.ts": { | ||
plugins: ["typescript", "typescript-operations", "typescript-graphql-request"], | ||
config: { | ||
avoidOptionals: true, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
export default config |
Oops, something went wrong.