---
title: BackendConfiguration
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/backend/interface.BackendConfiguration/
---

**Kind:** Interface  
**Module:** [backend](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/backend/)  
**Package:** @fastly/js-compute 4.0.1  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/backend.d.ts#L209

Extends `DefaultBackendConfiguration`.

## Properties

### name

**Type:** `string`  
**Flags:** optional, deprecated  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/backend.d.ts#L221

> **DEPRECATED:** to avoid name collisions it is recommended to use auto-generated names by omitting this property.

The name of the backend.
The name has to be between 1 and 254 characters inclusive.
The name can be whatever you would like, as long as it does not match the name of any of the static service backends nor match any other dynamic backends built during a single execution of the application.

If no name is provided, an autogenerated internal name will be used.

### target

**Type:** `string`  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/backend.d.ts#L237

A hostname, IPv4, or IPv6 address for the backend as well as an optional port.
If set, the target has to be at least 1 character.

```javascript
hostname
"example.com"
```

```javascript
hostname and port
"example.com:443"
```

```javascript
ip address
"1.2.3.4"
```

```javascript
ip address and port
"1.2.3.4:8080"
```

### hostOverride

**Type:** `string`  
**Flags:** optional  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/backend.d.ts#L246

If set, will force the HTTP Host header on connections to this backend to be the supplied value.

```javascript
"example.com:443"
```

### sniHostname

**Type:** `string`  
**Flags:** optional  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/backend.d.ts#L253

The SNI hostname to use on connections to this backend.

### grpc

**Type:** `boolean`  
**Flags:** optional, since 3.23.0  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/backend.d.ts#L263
