diff --git a/.nvmrc b/.nvmrc index 9e15be38..3b3a53bf 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16.20.0 +16.20.0 \ No newline at end of file diff --git a/applications/server/src/machines/http.service.ts b/applications/server/src/machines/http.service.ts index 044ab74b..9e54ea1e 100644 --- a/applications/server/src/machines/http.service.ts +++ b/applications/server/src/machines/http.service.ts @@ -67,7 +67,6 @@ const createServer = async ({ credentials: true, }; const schemaFilePath = path.resolve(getRootPath(), 'schema.graphql'); - const schemaFile = await fs.readFile(schemaFilePath, 'utf-8'); const production = ctx.config.production; const schema = await buildSchema({ resolvers, @@ -76,6 +75,8 @@ const createServer = async ({ validate: false, authChecker, }); + + const schemaFile = await fs.readFile(schemaFilePath, 'utf-8'); const apolloConfig = { cache: 'bounded', schema: schema,