Skip to main content

Configuration

Introduction​

Each setting can be set once for the whole site in config.php, or for one tag as a parameter. A parameter wins over config.php, which wins over the default.

system/user/config/config.php
$config['vitesse_build_directory'] = 'build';
$config['vitesse_base_url'] = 'https://cdn.example.com';

Settings​

Parameterconfig.phpDefault
build_directory=vitesse_build_directorybuildThe folder, under the web root, your build goes to. Matches Vite's build.outDir.
base_url=vitesse_base_urlThe site rootWhere built files are served from, such as a CDN. See Production.
hot_file=vitesse_hot_filehotThe hot file: relative to the web root, or an absolute path.
manifest=vitesse_manifest.vite/manifest.json, then manifest.jsonThe manifest, relative to the build directory, or an absolute path.
nonce=vitesse_nonceNoneA Content Security Policy nonce for every tag. See Production.
preload=vitesse_preloadyesno leaves out <link rel="modulepreload">.
vitesse_public_pathThe folder index.php is inYour web root on disk. Set it when index.php isn't in the web root.

Where files are found​

The hot file and the manifest are found from your web root: the folder index.php is in, or vitesse_public_path. With the defaults, that's:

your-web-root/
├── index.php
├── hot ← while `vite` runs
└── build/
├── .vite/manifest.json ← Vite 5 and later
└── assets/…

Built files are served from /build/…, or from base_url when it's set.