disableAutoFullBuild
Disable the automatic chaining of build steps.
â›”This setting is deprecated and will soon be removed. (Because Vite will soon use one Rolldown build in replacement of two Rollup builds.)
Consider API >
+prerender>disableAutoRuninstead.
// pages/+config.js
export default {
// Disable all chaining
disableAutoFullBuild: true,
// Or only disable the automatic pre-render triggering
disableAutoFullBuild: 'prerender'
}// pages/+config.ts
import type { Config } from 'vike/types'
export default {
// Disable all chaining
disableAutoFullBuild: true,
// Or only disable the automatic pre-render triggering
disableAutoFullBuild: 'prerender'
} satisfies ConfigRunning $ vite build executes three build steps:
- Client-side build (
dist/client/). - Server-side build (
dist/server/). - Pre-rendering (if pre-rendering is enabled).
When setting disableAutoFullBuild to true then only step 1 is executed. To run the full build, you then have to:
- Run
$ vite build, to build the client-side (dist/client/). - Run
$ vite build --ssr, to build the server-side (dist/server/). - Run the pre-rendering programmatically, see API > JavaScript API >
prerender().
If your goal is only to programmatically run pre-rendering then consider using
prerender.disableAutoRuninstead.