PublishAsStaticWebsiteOptions
Class net8.0
Options for configuring the static website publish mode.
namespace Aspire.Hosting.JavaScript;
public class PublishAsStaticWebsiteOptions{ // ...}Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesOutputPathget; setstring 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. StripPrefixget; setbool 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. TargetEndpointNameget; setstring? 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.