Update lib/graphqlHelpers.ts

This commit is contained in:
Simon Warta
2023-04-12 11:41:54 +02:00
committed by GitHub
parent ee845e98c4
commit f0107e5edb
+2
View File
@@ -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}`,