Skip to main content

HotSite

hotstaq / Modules / 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​

HotStaq.ts:221


components​

• Optional components: Object

The components to load and register.

Index signature​

â–ª [name: string]: { url: string }

Defined in​

HotStaq.ts:272


files​

• Optional files: Object

The files to load and save in memory.

Index signature​

â–ª [name: string]: { url: string }

Defined in​

HotStaq.ts:283


hotsitePath​

• Optional hotsitePath: string

The path to the current HotSite. This is filled in during parsing.

Defined in​

HotStaq.ts:88


name​

• name: string

The name of this HotSite.

Defined in​

HotStaq.ts:84


publicSecrets​

• Optional publicSecrets: Object

Secrets that can be publicly embedded into the page.

Index signature​

â–ª [name: string]: string | { env?: string ; passSecretFromAPI?: string }

Defined in​

HotStaq.ts:256


routes​

• Optional routes: Object

The routes to load.

Index signature​

â–ª [routeName: string]: HotSiteRoute

Defined in​

HotStaq.ts:214


server​

• Optional server: Object

Additional web server configuration.

Type declaration​

NameTypeDescription
globalApi?stringThe name of the API to interface with across all pages.
jsSrcPath?stringThe JavaScript source path.
name?stringThe default name for a served Hott file.
ports?ObjectThe ports to use.
ports.http?numberThe HTTP port to serve on.
ports.https?numberThe HTTPS port to serve on.
ports.redirectHTTPtoHTTPS?booleanIf 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?booleanServe hott files when requested.
url?stringThe base url for the server.

Defined in​

HotStaq.ts:92


testing​

• Optional testing: Object

Testing related functionality.

Type declaration​

NameType
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

Defined in​

HotStaq.ts:147