Rspeedy logo
Rspeedy

Home > @lynx-js/rspeedy > Server > host

Server.host property

Specify the host that the Rspeedy Server listens to.

Signature:

host?: string | undefined;

Default Value

undefined

Remarks

During rspeedy dev, if server.host is unset, the dev plugin resolves dev-server-related URLs and client host settings with a detected local IPv4 address, such as 192.168.1.50. If you have multiple network interfaces, set server.host explicitly to choose the desired address.

Example

Set the host to a custom value:

import { defineConfig } from '@lynx-js/rspeedy'
export default defineConfig({
  server: {
    host: "192.168.1.50",
  },
})
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.