Basic IIF rendering with test component for BOD-83

This commit is contained in:
Patrick Fic
2020-05-21 16:38:06 -07:00
parent e906095d97
commit f631b91b18
10 changed files with 143 additions and 133 deletions

View File

@@ -1,10 +1,17 @@
const GraphQLClient = require("graphql-request").GraphQLClient;
const path = require("path");
require("dotenv").config({ path: path.resolve(process.cwd(), `.env.${process.env.NODE_ENV || 'development'}`) });
require("dotenv").config({
path: path.resolve(
process.cwd(),
`.env.${process.env.NODE_ENV || "development"}`
),
});
//TODO May need to use a different client that includes caching of resources.
//TODO May need to use a different client that includes caching of resources.
exports.client = new GraphQLClient(process.env.GRAPHQL_ENDPOINT, {
headers: {
"x-hasura-admin-secret": process.env.HASURA_ADMIN_SECRET
}
"x-hasura-admin-secret": process.env.HASURA_ADMIN_SECRET,
},
});
exports.unauthclient = new GraphQLClient(process.env.GRAPHQL_ENDPOINT);