# PublishAsStaticWebsiteOptions

- Kind: `class`
- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.JavaScript`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/PublishAsStaticWebsiteOptions.cs)

Options for configuring the static website publish mode.

## Definition

```csharp
namespace Aspire.Hosting.JavaScript;

public class PublishAsStaticWebsiteOptions
{
    // ...
}
```

## Constructors

- [PublishAsStaticWebsiteOptions](/reference/api/csharp/aspire.hosting.javascript/publishasstaticwebsiteoptions/constructors.md#constructor)

## Properties

- [OutputPath](/reference/api/csharp/aspire.hosting.javascript/publishasstaticwebsiteoptions/properties.md#outputpath) : `string` `get; set` -- 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`.
- [StripPrefix](/reference/api/csharp/aspire.hosting.javascript/publishasstaticwebsiteoptions/properties.md#stripprefix) : `bool` `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`.
- [TargetEndpointName](/reference/api/csharp/aspire.hosting.javascript/publishasstaticwebsiteoptions/properties.md#targetendpointname) : `string?` `get; set` -- 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.
