# ServerOptions

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Interface: ServerOptions

Defined in: [server/src/types.ts:1](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/server/src/types.ts#L1)

## Properties

### corsOrigin

> **corsOrigin**: `string`

Defined in: [server/src/types.ts:11](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/server/src/types.ts#L11)

Allowed CORS origin

***

### host

> **host**: `string`

Defined in: [server/src/types.ts:5](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/server/src/types.ts#L5)

Host to bind to

***

### port

> **port**: `number`

Defined in: [server/src/types.ts:3](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/server/src/types.ts#L3)

Port to listen on

***

### readOnly

> **readOnly**: `boolean`

Defined in: [server/src/types.ts:9](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/server/src/types.ts#L9)

Read-only mode

***

### workspace

> **workspace**: `string`

Defined in: [server/src/types.ts:7](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/server/src/types.ts#L7)

Workspace root directory