Usage:
$ vike dev
Start development server.$ vike build
Build for production.$ vike preview
Start preview server using production build.$ vike prerender
Pre-render pages.$ vike -v
Print Vike's installed version.
Vike's CLI doesn't have any options, instead:
- change your
vite.config.js
file, or - use the
VITE_CONFIG
environment variable.
For example:
You can define
VITE_CONFIG
using JavaScript-like syntax, JSON syntax, or JSON5 syntax. (Vike uses JSON5 to parseVITE_CONFIG
.)