From 98f954aa8217976b952cb4675ba22f856d9ea3a0 Mon Sep 17 00:00:00 2001 From: Lucid Date: Sat, 6 Dec 2025 22:22:33 -0500 Subject: [PATCH] update api token --- .env.example | 2 +- src/lib/urql.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 8acb71f..9ec67b2 100644 --- a/.env.example +++ b/.env.example @@ -9,4 +9,4 @@ SERVER_PORT=3000 BOT_ADMINS=[1] GROUP_IDS=- GRAPHQL_URL=http://localhost:3000/api/graphql -API_TOKEN="token-here" \ No newline at end of file +GRAPHQL_API_TOKEN="token-here" \ No newline at end of file diff --git a/src/lib/urql.ts b/src/lib/urql.ts index dbe6632..82ba9bb 100644 --- a/src/lib/urql.ts +++ b/src/lib/urql.ts @@ -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 || "" } } });