add default experimental object
This commit is contained in:
@@ -47,6 +47,7 @@ export const defaults: Omit<Config, 'db' | 'editor' | 'secret'> = {
|
||||
defaultDepth: 2,
|
||||
defaultMaxTextLength: 40000,
|
||||
endpoints: [],
|
||||
experimental: {},
|
||||
globals: [],
|
||||
graphQL: {
|
||||
disablePlaygroundInProduction: true,
|
||||
@@ -121,6 +122,7 @@ export const addDefaultsToConfig = (config: Config): Config => {
|
||||
config.defaultDepth = config.defaultDepth ?? 2
|
||||
config.defaultMaxTextLength = config.defaultMaxTextLength ?? 40000
|
||||
config.endpoints = config.endpoints ?? []
|
||||
config.experimental = config.experimental ?? {}
|
||||
config.globals = config.globals ?? []
|
||||
config.graphQL = {
|
||||
disableIntrospectionInProduction: true,
|
||||
|
||||
Reference in New Issue
Block a user