prod deploy fix
This commit is contained in:
parent
35956ce32c
commit
37607d5435
@ -3,11 +3,12 @@ const WebSocket = require('ws');
|
||||
const { PubSub } = require('graphql-subscriptions');
|
||||
const { parse } = require('graphql');
|
||||
const fs = require('fs');
|
||||
import path from 'path';
|
||||
|
||||
const pubsub = new PubSub();
|
||||
|
||||
// Read the schema file
|
||||
const schema = fs.readFileSync('./schemas/directus.graphql', 'utf8');
|
||||
const schemaPath = path.resolve(process.cwd(), './schemas/directus.graphql');
|
||||
const schema = fs.readFileSync(schemaPath, 'utf8');
|
||||
|
||||
// Parse the schema
|
||||
const document = parse(schema);
|
||||
|
Reference in New Issue
Block a user