From f0107e5edbd9c9b5490fc7c25ecbbcf7d55819b1 Mon Sep 17 00:00:00 2001 From: Simon Warta <2603011+webmaster128@users.noreply.github.com> Date: Wed, 12 Apr 2023 11:41:54 +0200 Subject: [PATCH] Update lib/graphqlHelpers.ts --- lib/graphqlHelpers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/graphqlHelpers.ts b/lib/graphqlHelpers.ts index 8185d96..33bfec9 100644 --- a/lib/graphqlHelpers.ts +++ b/lib/graphqlHelpers.ts @@ -3,6 +3,8 @@ import { DbAccount, DbSignature, DbTransaction } from "../types"; // Graphql base request for Faunadb const graphqlReq = axios.create({ + // The fallback URL works for classic databases. See https://docs.fauna.com/fauna/current/learn/understanding/region_groups + // for more information about regions. baseURL: process.env.FAUNADB_URL || "https://graphql.fauna.com/graphql", headers: { Authorization: `Bearer ${process.env.FAUNADB_SECRET}`,