mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
13 lines
471 B
Markdown
13 lines
471 B
Markdown
---
|
|
title: browser.api | Config
|
|
outline: deep
|
|
---
|
|
|
|
# browser.api
|
|
|
|
- **Type:** `number | { port?, strictPort?, host? }`
|
|
- **Default:** `63315`
|
|
- **CLI:** `--browser.api=63315`, `--browser.api.port=1234, --browser.api.host=example.com`
|
|
|
|
Configure options for Vite server that serves code in the browser. Does not affect [`test.api`](#api) option. By default, Vitest assigns port `63315` to avoid conflicts with the development server, allowing you to run both in parallel.
|