base
Base public path when served in development or production.
Valid values include:
Absolute URL pathname, e.g.
/foo/
,Full URL, e.g.
https://foo.com/
,Empty string or
./
(for embedded deployment).
Example
To expose the generate website to the /ui
path instead of the website root, use:
vite {
base.set("/ui")
}
Content copied to clipboard