SpaPrerenderingOptions Class

Definition

Caution

Prerendering is no longer supported out of box

Represents options for the SPA prerendering middleware.

public ref class SpaPrerenderingOptions
public class SpaPrerenderingOptions
[System.Obsolete("Prerendering is no longer supported out of box")]
public class SpaPrerenderingOptions
type SpaPrerenderingOptions = class
[<System.Obsolete("Prerendering is no longer supported out of box")>]
type SpaPrerenderingOptions = class
Public Class SpaPrerenderingOptions
Inheritance
SpaPrerenderingOptions
Attributes

Constructors

SpaPrerenderingOptions()

Properties

BootModuleBuilder

Gets or sets an ISpaPrerendererBuilder that the prerenderer will invoke before looking for the boot module file.

This is only intended to be used during development as a way of generating the JavaScript boot file automatically when the application runs. This property should be left as null in production applications.

BootModulePath

Gets or sets the path, relative to your application root, of the JavaScript file containing prerendering logic.

ExcludeUrls

Gets or sets an array of URL prefixes for which prerendering should not run.

SupplyData

Gets or sets a callback that will be invoked during prerendering, allowing you to pass additional data to the prerendering entrypoint code.

Applies to