Config Object

Config Object

KeyTypeDefaultDescription
mountMainAsRootbooleantrueMount main plugin's routes as root. Set to false to have prefixed with /main
charsetstringutf-8Used to set rendered page's character set
i18nobject
  detectorsarray["qs"]Language detector
sessionobject/boolean<def>Session settings. Set to false to disable session
emojibooleantrueAllow/disallow emoji rendering
viewEngineobjectDefault/built-in view engine settings
  cacheMaxAgenumber0Max of time a page template will be cached
themeobject/booleanTheme settings. Set to false to NOT use theme altogether
  defaultstringpureTheme to use by default
  autoInsertarray<all>Auto insert items from theme. Available options: meta, css, scripts
  componentobjectComponent settings
    unknowntagstringcommentUnknown tag handling: comment, remove, divReplace
    insertCtagAsAttrbooleantrueSet to true to insert component tag as attribute. Useful for debugging
    defaultTagstringdivDefault tag to use if none is given
    cacheMaxAgenumber0Max of time a component template will be cached. Default 'prod': 300
iconsetobject/booleanIconset settings. Set to false to NOT use iconset at all
  defaultstring<none>Which iconset is to use by default
  autoInsertarray<all>Auto insert items from iconset. Available options: css, scripts
prettierobject/boolean<def>Prettier settings. Set to false to disable. Default 'prod': false
minifierobject/booleanfalseMinifier settings. Set to false to disable. *Default 'prod': <def>
markdownobject/boolean<def>Markdown settings. Require Bajo Markdown to be loaded. Set to false to disable
multipartobject/boolean<def>Multipart settings. Set to false to disable
corsobject/boolean<def>Cors settings. Set to false to disable
helmetobject/boolean<def>Helmet settings. Set to false to disable
compressobject/booleanfalseCompress settings. Set to false to disable. Default 'prod': <def>
rateLimitobject/booleanfalseRate limit settings. Set to false to disable. *Default 'prod': <def>
disabledarray[]Route to be disabled