Interface: Environment
@ima/core.Environment
App environment for single env key.
Indexable
▪ [key: string
]: unknown
Properties
$App
• Optional
$App: $AppSettings
Defined in
$Debug
• $Debug: boolean
Defined in
$Language
• $Language: Record
<string
, string
>
Defined in
$Resources
• Optional
$Resources: (response
: unknown
, manifest
: Manifest
, defaultResources
: Resources
) => Resources
Type declaration
▸ (response
, manifest
, defaultResources
): Resources
Parameters
Name | Type |
---|---|
response | unknown |
manifest | Manifest |
defaultResources | Resources |
Returns
Defined in
$Server
• $Server: Object
Type declaration
Name | Type |
---|---|
cache | { cacheKeyGenerator? : (req : Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >>) => string ; enabled : boolean | (req : Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >>) => boolean ; entryTtl : number ; maxEntries : number ; unusedEntryTtl : number } |
cache.cacheKeyGenerator? | (req : Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >>) => string |
cache.enabled | boolean | (req : Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >>) => boolean |
cache.entryTtl | number |
cache.maxEntries | number |
cache.unusedEntryTtl | number |
clusters | null | number |
concurrency | number |
host? | string | (__namedParameters : { environment : Environment ; host : string ; req : Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> }) => string |
logger | { formatting : "dev" | "simple" | "JSON" } |
logger.formatting | "dev" | "simple" | "JSON" |
overloadConcurrency | number |
port | number |
protocol? | "http:" | "https:" | (__namedParameters : { environment : Environment ; protocol : string ; req : Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> }) => "http:" | "https:" |
serveSPA | { allow : boolean ; blackList? : (userAgent : string ) => boolean } |
serveSPA.allow | boolean |
serveSPA.blackList? | (userAgent : string ) => boolean |
staticConcurrency | number |
staticPath | string |
Defined in
$Version
• $Version: string