# PublishAsStaticWebsiteOptions Properties

- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Type: [PublishAsStaticWebsiteOptions](/reference/api/csharp/aspire.hosting.javascript/publishasstaticwebsiteoptions.md)
- Kind: `Properties`
- Members: `3`

Options for configuring the static website publish mode.

## OutputPath

- Name: `OutputPath`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/PublishAsStaticWebsiteOptions.cs)

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`.

```csharp
public string OutputPath { get; set; }
```

## StripPrefix

- Name: `StripPrefix`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/PublishAsStaticWebsiteOptions.cs)

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`.

```csharp
public bool StripPrefix { get; set; }
```

## TargetEndpointName

- Name: `TargetEndpointName`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/PublishAsStaticWebsiteOptions.cs)

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.

```csharp
public string? TargetEndpointName { get; set; }
```
