mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
docs(configuration): add documentation for server option (#446)
Co-authored-by: Valerio Ageno <51341197+Valerioageno@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
bd34c194cb
commit
bbe9605f6f
@@ -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.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import type { AliasOptions, DepOptimizationOptions, PluginOption } from 'vite'
|
||||
|
||||
/**
|
||||
* @see http://tuono.dev/documentation/configuration
|
||||
*/
|
||||
export interface TuonoConfig {
|
||||
server?: {
|
||||
host?: string
|
||||
|
||||
Reference in New Issue
Block a user