Skip to main content

Interface: Environment

@ima/core.Environment

App environment for single env key.

Indexable

[key: string]: unknown

Properties

$App

Optional $App: $AppSettings

Defined in

packages/core/src/boot.ts:61


$Debug

$Debug: boolean

Defined in

packages/core/src/boot.ts:58


$Language

$Language: Record<string, string>

Defined in

packages/core/src/boot.ts:59


$Resources

Optional $Resources: (response: unknown, manifest: Manifest, defaultResources: Resources) => Resources

Type declaration

▸ (response, manifest, defaultResources): Resources

Parameters
NameType
responseunknown
manifestManifest
defaultResourcesResources
Returns

Resources

Defined in

packages/core/src/boot.ts:62


$Server

$Server: Object

Type declaration

NameType
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.enabledboolean | (req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>) => boolean
cache.entryTtlnumber
cache.maxEntriesnumber
cache.unusedEntryTtlnumber
clustersnull | number
concurrencynumber
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"
overloadConcurrencynumber
portnumber
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.allowboolean
serveSPA.blackList?(userAgent: string) => boolean
staticConcurrencynumber
staticPathstring

Defined in

packages/core/src/boot.ts:67


$Version

$Version: string

Defined in

packages/core/src/boot.ts:60