SpaOptions Class

Definition

Describes options for hosting a Single Page Application (SPA).

public ref class SpaOptions
public class SpaOptions
type SpaOptions = class
Public Class SpaOptions
Inheritance
SpaOptions

Constructors

SpaOptions()

Constructs a new instance of SpaOptions.

Properties

DefaultPage

Gets or sets the URL of the default page that hosts your SPA user interface. The default value is "/index.html".

DefaultPageStaticFileOptions

Gets or sets the StaticFileOptions that supplies content for serving the SPA's default page.

If not set, a default file provider will read files from the WebRootPath, which by default is the wwwroot directory.

DevServerPort
PackageManagerCommand
SourcePath

Gets or sets the path, relative to the application working directory, of the directory that contains the SPA source files during development. The directory may not exist in published applications.

StartupTimeout

Gets or sets the maximum duration that a request will wait for the SPA to become ready to serve to the client.

Applies to