serve

The serve section of wvb.config — the local file, port, and log output for the preview server.

serve (ServeConfig) sets the defaults for wvb serve, the local server that serves a packed bundle for development.

wvb.config.ts
import { defineConfig } from '@wvb/config';

export default defineConfig({
  serve: {
    file: './.wvb/app.wvb',
    port: 4312,
    silent: false,
  },
});
FieldTypeDefault
filestringthe pack.outFile path
portnumber4312
silentboolean

file falls back to the resolved pack.outFile path when omitted. Set silent to disable request-log output.

serve has no hostname field. To bind a different host, pass --hostname (alias -H) to wvb serve on the command line.