stream

Default value: false. (Or true if using a Vike extension that requires streaming.)
Requires: ssr: true.
Implemented by: vike-react/vike-vue/vike-solid.

You need vike-react/vike-vue/vike-solid to be able to use the stream setting. If you don't use vike-react/vike-vue/vike-solid then see Without Vike extension.

Setting to disable/enable HTML Streaming.

Disable for all your pages:

// /pages/+config.js
 
// This config applies to all pages (/pages/**).
export default {
  stream: false
}

Disable only for some pages:

// /pages/admin/+config.js
 
/* This config applies only to admin pages (/pages/admin/**) such as:
   FILESYSTEM                            URL
   /pages/admin/+Page.js                 /admin
   /pages/admin/user/@id/+Page.js        /admin/user/@id
   /pages/admin/product/@id/+Page.js     /admin/product/@id
*/
export default {
  stream: false
}

For an improved file and config organization, you can consider using a domain-driven file structure.

Without Vike extension

In case you don't use a UI framework Vike extension (vike-react/vike-vue/vike-solid), you can implement the stream setting yourself by using meta.

Examples:

See also