Skip to content
DocsTry Aspire
DocsTry

PublishAsStaticWebsiteOptions Properties

ClassProperties3 members
Options for configuring the static website publish mode.
Gets or sets the relative path to the directory containing the built static files. Defaults to dist. Some frameworks use a different output directory, for example Angular uses dist/browser.
public string OutputPath { get; set; }
Gets or sets whether to remove the API path prefix before forwarding to the backend. For example, with apiPath="/api" and StripPrefix=true, a request to /api/weatherforecast is forwarded as /weatherforecast. Defaults to false.
public bool StripPrefix { get; set; }
TargetEndpointNameSection titled TargetEndpointNamenullablestring?
Gets or sets the name of a specific endpoint on the API target resource to proxy to. When null, YARP uses service discovery to resolve the appropriate endpoint, preferring HTTPS when available.
public string? TargetEndpointName { get; set; }