docs(configuration): add documentation for server option (#446)

Co-authored-by: Valerio Ageno <51341197+Valerioageno@users.noreply.github.com>
This commit is contained in:
Marco Pasqualetti
2025-01-28 08:53:49 +01:00
committed by GitHub
parent bd34c194cb
commit bbe9605f6f
2 changed files with 22 additions and 0 deletions
@@ -55,3 +55,22 @@ Useful for extending vite's functionality
- Type: `Array<Plugin | Array<Plugin> | Promise<Plugin | Array<Plugin>>`
- [Vite documentation: plugins](https://vite.dev/guide/using-plugins)
## server
The following options configure the server.
## server.host
- Type: `string`
- Default: `'localhost'`
The hostname or IP address of the server.
It can be a domain name (e.g., `"example.com"`) or an IP address (e.g., `"127.0.0.1"`)
## server.port
- Type: `number`
- Default: `3000`
The port number where the server will listen for incoming requests.
+3
View File
@@ -1,5 +1,8 @@
import type { AliasOptions, DepOptimizationOptions, PluginOption } from 'vite'
/**
* @see http://tuono.dev/documentation/configuration
*/
export interface TuonoConfig {
server?: {
host?: string