summaryrefslogtreecommitdiffstats
path: root/backend/src
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src')
-rw-r--r--backend/src/createServer.js5
-rw-r--r--backend/src/index.js3
2 files changed, 4 insertions, 4 deletions
diff --git a/backend/src/createServer.js b/backend/src/createServer.js
index a98a25f..134f976 100644
--- a/backend/src/createServer.js
+++ b/backend/src/createServer.js
@@ -1,8 +1,5 @@
const { GraphQLServer } = require('graphql-yoga');
const { Prisma } = require('prisma-binding');
-require('dotenv').config({ path: 'variables.env' });
-
-console.log(process.env.PRISMA_STAGE);
const Mutation = require('./resolvers/Mutation');
const Query = require('./resolvers/Query');
@@ -19,7 +16,7 @@ function createServer() {
...req,
db: new Prisma({
typeDefs: 'src/generated/prisma.graphql',
- endpoint: process.env.PRISMA_ENDPOINT, // the endpoint of the Prisma DB service (value is set in .env)
+ endpoint: process.env.PRISMA_ENDPOINT, // the endpoint of the Prisma DB service (value is set in variables.env)
secret: process.env.PRISMA_SECRET, // taken from database/prisma.yml (value is set in .env)
debug: false, // log all GraphQL queries & mutations
}),
diff --git a/backend/src/index.js b/backend/src/index.js
index 9f759ef..04d13cc 100644
--- a/backend/src/index.js
+++ b/backend/src/index.js
@@ -1,3 +1,6 @@
+/* eslint-disable */
+require('dotenv').config({ path: 'variables.env' });
+/* eslint-enable */
const jwt = require('jsonwebtoken');
const createServer = require('./createServer');