Files

@Serializable
class Files(val dev: Server.Files.Dev, val prod: Server.Files.Prod)(source)

A collection of files and paths needed by the Kobweb server to serve its files.

Constructors

Link copied to clipboard
constructor(dev: Server.Files.Dev, prod: Server.Files.Prod)

Types

Link copied to clipboard
@Serializable
class Dev(val contentRoot: String, val script: String, val api: String? = null)

The dev server only serves a single html file that represents the whole project.

Link copied to clipboard
@Serializable
class Prod(val script: String, val siteRoot: String = ".kobweb/site")

Properties

Link copied to clipboard
Link copied to clipboard