Skip to content

Configuration

Percs edited this page Mar 15, 2024 · 3 revisions

Configuration

We highly recommend you look at the Ultraviolet type definition to understand the parameters in uv.config.js

This code is setting the __uv$config property of the self object to a configuration object with several properties. The properties of this object match the fields of the UVConfig interface defined in the type definition, and they are used to customize the behavior of Ultraviolet.

The properties of this configuration object include prefix, which specifies the URL prefix that Ultraviolet should listen on, encodeUrl and decodeUrl, which are functions for encoding and decoding URLs, and handler, client, bundle, config, and sw, which specify the paths to various scripts used by Ultraviolet.

Clone this wiki locally