Added cache exchange urq, fixed eslint, added prettier, upgraded yarn, added statsSite command.
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m58s

This commit is contained in:
2026-01-02 10:10:20 -05:00
parent c088d7c4a5
commit df433c1951
7 changed files with 301 additions and 49 deletions

View File

@@ -8,7 +8,7 @@ import { config } from "#root/config.js";
import { logger } from "#root/logger.js";
import { createServer, createServerManager } from "#root/server/index.js";
import { run } from "@grammyjs/runner";
import { Client, fetchExchange } from "@urql/core";
import { cacheExchange, Client, fetchExchange } from "@urql/core";
async function startPolling(config: PollingConfig) {
const bot = createBot(config.botToken, {
@@ -116,7 +116,7 @@ function onShutdown(cleanUp: () => Promise<void>) {
export const urql = new Client({
url: process.env.GRAPHQL_URL || "",
exchanges: [fetchExchange],
exchanges: [fetchExchange, cacheExchange],
fetchOptions: {
headers: {
"x-api-key": process.env?.GRAPHQL_API_TOKEN || ""