Site

@Serializable
class Site(val title: String, val routePrefix: String = "", val basePath: String = "")(source)

Constructors

Link copied to clipboard
constructor(title: String, routePrefix: String = "", basePath: String = "")

Properties

Link copied to clipboard

If specified, it means all content for this site live under a subfolder. So if this value is "/a/b/c", then the root index.html file will be visited by the user going to mysite.com/a/b/c/. This should rarely need to be used, but it may be required by some server configurations which nest your site to a subdirectory.

Link copied to clipboard

Temporary fallback until we can remove routePrefix

Link copied to clipboard
Link copied to clipboard

The title of the site. See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title