diff --git a/package.json b/package.json index 145351b..84a5b68 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "start": "NODE_ENV=production ts-node src/server.ts", "debug": "ts-node src/server.ts", "test": "nodemon src/server.ts", - "build": "tsc", + "build": "tsc || echo", "restart": "webservice --backend kubernetes node16 restart" }, "keywords": [ diff --git a/src/server.ts b/src/server.ts index 64e4bda..2bad5f1 100644 --- a/src/server.ts +++ b/src/server.ts @@ -26,16 +26,14 @@ import { resolvers, introspection: true, plugins: [ - process.env.NODE_ENV === 'production' - ? ApolloServerPluginLandingPageProductionDefault({ - footer: false, - // graphRef: 'my-graph-id@my-graph-variant', - // embed: { - // runTelemetry: false, - // persistExplorerState: true - // } - }) - : ApolloServerPluginLandingPageLocalDefault(), + ApolloServerPluginLandingPageLocalDefault({ + embed: { + runTelemetry: false, + initialState: { + pollForSchemaUpdates: process.env.NODE_ENV !== 'production', + } + } + }), ], });