disableAutoFullBuild

Disable the automatic chaining of build steps.

// vite.config.js
 
import vike from 'vike/plugin'
 
export default {
  plugins: [
    vike({
      // Disable all chaining
      disableAutoFullBuild: true,
      // Only disable the automatic pre-render triggering
      disableAutoFullBuild: 'prerender',
    })
  ]
}

Running $ vite build executes three build steps:

  1. Client-side build (dist/client/).
  2. Server-side build (dist/server/).
  3. 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 > prerender().

If your goal is only to programmatically run pre-rendering then consider using prerender.disableAutoRun instead.

See also