Vike CLI command to trigger pre-rendering.

$ vike prerender

Use API > prerender > disableAutoRun if you don't want pre-rendering to be run twice.

The Vike CLI doesn't have any option, use the config file instead: API > prerender > disableAutoRun.

See also