Changed config path for server to use local env files.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const GraphQLClient = require("graphql-request").GraphQLClient;
|
||||
require("dotenv").config();
|
||||
const path = require("path");
|
||||
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.
|
||||
exports.client = new GraphQLClient(process.env.GRAPHQL_ENDPOINT, {
|
||||
|
||||
Reference in New Issue
Block a user