MCPcopy Create free account
hub / github.com/keystonejs/keystone / stripExtendHttpServer

Function stripExtendHttpServer

packages/core/src/scripts/dev.ts:39–46  ·  view source on GitHub ↗
(config: KeystoneConfig)

Source from the content-addressed store, hash-verified

37const devLoadingHTMLFilepath = path.join(pkgDir, 'static', 'dev-loading.html')
38
39function stripExtendHttpServer (config: KeystoneConfig): KeystoneConfig {
40 const { server, ...rest } = config
41 if (server) {
42 const { extendHttpServer, ...restServer } = server
43 return { ...rest, server: restServer }
44 }
45 return rest
46}
47
48function resolvablePromise<T> () {
49 let _resolve!: (value: T) => void

Callers 1

initKeystoneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected