Server.Options
Development server options.
• Optional
host: string
Hostname or IP address under which to run the development server. When left unspecified, it will listen on all available network interfaces, similarly to listening on '0.0.0.0'.
• Optional
https: Object
Options for running the server as HTTPS. If undefined
, the server will run as HTTP.
Name | Type | Description |
---|---|---|
cert? |
string |
Path to certificate when running server as HTTPS. |
key? |
string |
Path to certificate key when running server as HTTPS. |
• port: number
Port under which to run the development server.
• rootDir: string
Root directory of the project.