HotSite
Interface: HotSite
A HotSite to load. This SHOULD NOT contain any private secret keys, passwords, or database connection information related to the server. As such, future versions of the HotSite interface should not contain any database related connection info.
Table of contents​
Properties​
Properties​
apis​
• Optional
apis: Object
The available APIs on the server. The server must already have these loaded.
Index signature​
â–ª [name: string
]: { apiName?
: string
; filepath?
: string
; jsapi?
: string
; libraryName?
: string
; map?
: string
[] ; port?
: number
; url?
: string
}
Defined in​
components​
• Optional
components: Object
The components to load and register.
Index signature​
â–ª [name: string
]: { url
: string
}
Defined in​
files​
• Optional
files: Object
The files to load and save in memory.
Index signature​
â–ª [name: string
]: { url
: string
}
Defined in​
hotsitePath​
• Optional
hotsitePath: string
The path to the current HotSite. This is filled in during parsing.
Defined in​
name​
• name: string
The name of this HotSite.
Defined in​
publicSecrets​
• Optional
publicSecrets: Object
Secrets that can be publicly embedded into the page.
Index signature​
â–ª [name: string
]: string
| { env?
: string
; passSecretFromAPI?
: string
}
Defined in​
routes​
• Optional
routes: Object
The routes to load.
Index signature​
â–ª [routeName: string
]: HotSiteRoute
Defined in​
server​
• Optional
server: Object
Additional web server configuration.
Type declaration​
Name | Type | Description |
---|---|---|
globalApi? | string | The name of the API to interface with across all pages. |
jsSrcPath? | string | The JavaScript source path. |
name? | string | The default name for a served Hott file. |
ports? | Object | The ports to use. |
ports.http? | number | The HTTP port to serve on. |
ports.https? | number | The HTTPS port to serve on. |
ports.redirectHTTPtoHTTPS? | boolean | If set to true, this will redirect from HTTP to HTTPS. |
serveDirectories? | { localPath : string ; route : string }[] | The list of directory to serve to the client from the server. |
serveHottFiles? | boolean | Serve hott files when requested. |
url? | string | The base url for the server. |
Defined in​
testing​
• Optional
testing: Object
Testing related functionality.
Type declaration​
Name | Type |
---|---|
api? | Object |
api.createNewTester? | boolean |
api.driver? | string |
api.launchpadUrl? | string |
api.maps? | string [] |
api.tester? | string |
api.testerAPIUrl? | string |
api.testerName? | string |
web? | Object |
web.createNewTester? | boolean |
web.driver? | string |
web.launchpadUrl? | string |
web.maps? | string [] |
web.tester? | string |
web.testerAPIUrl? | string |
web.testerName? | string |