graphql #81

Merged
werewolfkid merged 7 commits from graphql into main 2025-12-06 22:32:59 -05:00
19 changed files with 399 additions and 434 deletions
Showing only changes of commit 98f954aa82 - Show all commits

View File

@@ -9,4 +9,4 @@ SERVER_PORT=3000
BOT_ADMINS=[1]
GROUP_IDS=-
GRAPHQL_URL=http://localhost:3000/api/graphql
API_TOKEN="token-here"
GRAPHQL_API_TOKEN="token-here"

View File

@@ -5,7 +5,7 @@ const urql = new Client({
exchanges: [cacheExchange, fetchExchange],
fetchOptions: {
headers: {
"x-api-key": process.env?.API_TOKEN || ""
"x-api-key": process.env?.GRAPHQL_API_TOKEN || ""
}
}
});