mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-08 08:54:05 +00:00
Refactor watch-contract CLI to cli package (#245)
* Refactor watch-contract CLI to cli package * Use watch-contract from cli in eden and erc721 watchers * Use watch-contract from cli in all watchers * Pass an object containing clients to refactored CLI Co-authored-by: nabarun <nabarun@deepstacksoft.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { ApolloServer } from 'apollo-server-express';
|
||||
import { createServer } from 'http';
|
||||
import { WebSocketServer } from 'ws';
|
||||
import { useServer } from 'graphql-ws/lib/use/ws';
|
||||
import { ApolloServerPluginDrainHttpServer } from 'apollo-server-core';
|
||||
import { ApolloServerPluginDrainHttpServer, ApolloServerPluginLandingPageLocalDefault } from 'apollo-server-core';
|
||||
import debug from 'debug';
|
||||
import responseCachePlugin from 'apollo-server-plugin-response-cache';
|
||||
import { InMemoryLRUCache } from '@apollo/utils.keyvaluecache';
|
||||
@@ -65,7 +65,8 @@ export const createAndStartServer = async (
|
||||
}
|
||||
},
|
||||
// GQL response cache plugin
|
||||
responseCachePlugin()
|
||||
responseCachePlugin(),
|
||||
ApolloServerPluginLandingPageLocalDefault({ embed: true })
|
||||
]
|
||||
});
|
||||
await server.start();
|
||||
|
||||
Reference in New Issue
Block a user