types_src.yamlconfig.serveconfig

Interface: ServeConfig#

types/src.YamlConfig.ServeConfig

Hierarchy#

  • ServeConfig

Table of contents#

Properties#

Properties#

cors#

Optional cors: CorsConfig

Defined in: packages/types/src/config.ts:50


exampleQuery#

Optional exampleQuery: string

Provide an example query or queries for GraphQL Playground

Defined in: packages/types/src/config.ts:49


fork#

Optional fork: number | boolean

Spawn multiple server instances as node clusters (default: 1) (Any of: Int, Boolean)

Defined in: packages/types/src/config.ts:41


handlers#

Optional handlers: (WebhookHandler | ExpressHandler)[]

Any of: WebhookHandler, ExpressHandler

Defined in: packages/types/src/config.ts:54


maxFileSize#

Optional maxFileSize: number

Maximum File Size for GraphQL Upload (default: '100000000')

Defined in: packages/types/src/config.ts:63


maxFiles#

Optional maxFiles: number

Maximum number of files for GraphQL Upload (default: '10')

Defined in: packages/types/src/config.ts:67


playground#

Optional playground: boolean

Show playground

Defined in: packages/types/src/config.ts:59


port#

Optional port: string | number

TCP Port to listen (default: 3000) (Any of: Int, String)

Defined in: packages/types/src/config.ts:45


staticFiles#

Optional staticFiles: string

Defined in: packages/types/src/config.ts:55