Remove playground landing page

This commit is contained in:
Trevor Blades
2022-02-11 11:48:06 -08:00
parent cae9c10bee
commit c2ef34fcbe
3 changed files with 1 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
import {ApolloServer, gql} from 'apollo-server';
import {ApolloServerPluginLandingPageGraphQLPlayground} from 'apollo-server-core';
import {buildSubgraphSchema} from '@apollo/subgraph';
import {readFileSync} from 'fs';
import {resolvers} from './resolvers.js';
@@ -8,8 +7,7 @@ const typeDefs = gql(readFileSync('./schema.graphql', 'utf-8'));
const server = new ApolloServer({
schema: buildSubgraphSchema({typeDefs, resolvers}),
introspection: true,
plugins: [ApolloServerPluginLandingPageGraphQLPlayground()]
introspection: true
});
server.listen({port: process.env.PORT || 4000}).then(({url}) => {